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 probesA 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 nextLearn 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 constraintsTo 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:AuroraBorgMarathonOmegaTupperware.FeedbackWas this page helpful?Yes
  NoThanks 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 January 03, 2025 at 3:44 PM PST: Change link to Borg research paper (1aeaf1bc0e) Pod API reference
    Create child page
   Create an issue
   Print entire sectionWhat is a Pod?Using PodsWorkload resources for managing podsWorking with PodsPod OSPods and controllersPod templatesPod update and replacementResource sharing and communicationStorage in PodsPod networkingPod security settingsStatic PodsPods with multiple containersContainer probesWhat's next© 2025 The Kubernetes Authors | Documentation Distributed under CC BY 4.0© 2025 The Linux Foundation ®. ```