instruction: Create a Dockerfile for workloads
output: ```dockerfile
  from a remote source, as in the following diagram:
  
  Some Pods have init containers
  as well as app containers.
  By default, init containers run and complete before the app containers are started.
  You can also have sidecar containers
  that provide auxiliary services to the main application Pod (for example: a service mesh).
  
  FEATURE STATE: Kubernetes v1.29 [beta]
  
  Enabled by default, the SidecarContainers feature gate
  allows you to specify restartPolicy: Always for init containers.
  Setting the Always restart policy ensures that the containers where you set it are
  treated as sidecars that are kept running during the entire lifetime of the Pod.
  Containers that you explicitly define as sidecar containers
  start up before the main application Pod and remain running until the Pod is
  shut down.
  Container probes
  A probe is a diagnostic performed periodically by the kubelet on a container. To perform a diagnostic, the kubelet can invoke different actions:
  
  ExecAction (performed with the help of the container runtime)
  TCPSocketAction (checked directly by the kubelet)
  HTTPGetAction (checked directly by the kubelet)
  
  You can read more about probes
  in the Pod Lifecycle documentation.
  What's next
  
  Learn about the lifecycle of a Pod.
  Learn about RuntimeClass and how you can use it to
  configure different Pods with different container runtime configurations.
  Read about PodDisruptionBudget and how you can use it to manage application availability during disruptions.
  Pod is a top-level resource in the Kubernetes REST API.
  The
  
  Pod
  object definition describes the object in detail.
  The Distributed System Toolkit: Patterns for Composite Containers explains common layouts for Pods with more than one container.
  Read about Pod topology spread constraints
  
  To understand the context for why Kubernetes wraps a common Pod API in other resources (such as StatefulSets or Deployments), you can read about the prior art, including:
  
  Aurora
  Borg
  Marathon
  Omega
  Tupperware.
  
  Feedback
  Was this page helpful?
  Yes
  No
  
   Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on
  
   Stack Overflow.
   Open an issue in the GitHub Repository if you want to
  
   report a problem
   or
  
   suggest an improvement.
  
   Last modified July 29, 2024 at 10:20 AM PST: Update _index.md - fixed grammar for a malformed sentence (493c0169ed)
  
   Pod API reference
    Create child page
   Create an issue
   Print entire section
  
  What is a Pod?
  Using Pods
  
  Workload resources for managing pods
  
  Working with Pods
  
  Pod OS
  Pods and controllers
  Pod templates
  
  Pod update and replacement
  Resource sharing and communication
  
  Storage in Pods
  Pod networking
  
  Pod security settings
  Static Pods
  Pods with multiple containers
  Container probes
  What's next
  
  Documentation
  Blog
  Training
  Partners
  Community
  Case Studies
  
  © 2025 The Kubernetes Authors | Documentation Distributed under CC BY 4.0
  
  ICP license: 京ICP备17074266号-3
  ```