Skip to content

pod

Pod-level options for this controller.

object

PropertyTypeRequiredDefaultDescription
affinityobjectNo-Set affinity constraint rules. Helm templates can be used…
annotationsobject / nullNo-Annotations to set on the item.
automountServiceAccountTokenbooleanNofalseSet to true to automatically mount the service account to…
dnsConfigobjectNo-Specifies the DNS parameters of a pod. Parameters specifi…
dnsPolicystringNo-Configure the Pod DNS policy. Defaults to ‘ClusterFir…
enableServiceLinksbooleanNofalseEnable/disable the generation of environment variables fo…
hostAliasesarrayNo-Use hostAliases to add custom entries to /etc/hosts - map…
hostIPCbooleanNofalseSet to true to use the host’s ipc namespace.
hostNetworkbooleanNofalseSet to false to disable host networking on the Pod. When …
hostPIDbooleanNofalseSet to true to use the host’s pid namespace.
hostUsersboolean / nullNo-Set to false to create a new userns for the Pod. (Require…
hostnamestringNo-Set the Pod’s hostname.
imagePullSecretsarrayNo-Set image pull secrets.
labelsobject / nullNo-Labels to set on the item.
nodeSelectorobjectNo-Node selection constraint. See https://kubernetes.io/docs
priorityClassNamestringNo-Custom priority class for different treatment by the sche…
resizePolicyarrayNo-Pod-level resize policy for controlling container restart…
resourceClaimsarrayNo-ResourceClaims defines which ResourceClaims must be alloc…
resourcesobjectNo-Set the resource requests / limits for the Pod. (Requires…
restartPolicystringNo-Set container restart policy. Defaults to ‘Always&#39…
runtimeClassNamestringNo-Set a runtimeClassName other than the default one (ie: `n…
schedulerNamestringNo-Set a custom scheduler name.
schedulingGatesarrayNo-SchedulingGates is an opaque list of values that if speci…
securityContextobjectNo-Configure the Security Context for the Pod.
shareProcessNamespaceboolean / nullNofalseAllows sharing process namespace between containers in a …
terminationGracePeriodSecondsinteger / nullNo-Duration in seconds the pod needs to terminate gracefully…
tolerationsarrayNo-Specify taint tolerations. See https://kubernetes.io/docs
topologySpreadConstraintsarrayNo-Defines topologySpreadConstraint rules. See https://kuber

Set to true to automatically mount the service account token.

Configure the Pod DNS policy. Defaults to ‘ClusterFirst’ if hostNetwork is false and ‘ClusterFirstWithHostNet’ if hostNetwork is true.

Enable/disable the generation of environment variables for services. See https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service

Use hostAliases to add custom entries to /etc/hosts - mapping IP addresses to hostnames. See https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/

Set to false to disable host networking on the Pod. When using hostNetwork, make sure you set dnsPolicy to ‘ClusterFirstWithHostNet’

Set to false to create a new userns for the Pod. (Requires Kubernetes 1.29 or newer)

Node selection constraint. See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector

Custom priority class for different treatment by the scheduler.

Pod-level resize policy for controlling container restart on resource resize. (Requires Kubernetes 1.36 or newer with InPlacePodLevelResourcesVerticalScaling enabled)

ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. (Requires Kubernetes 1.32 or newer)

Set container restart policy. Defaults to ‘Always’. When controller.type is ‘cronjob’ it defaults to ‘Never’.

Set a runtimeClassName other than the default one (ie: nvidia).

SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. See https://kubernetes.io/docs/concepts/scheduling-eviction/pod-scheduling-readiness/

Allows sharing process namespace between containers in a Pod. See https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/

Duration in seconds the pod needs to terminate gracefully. See https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#lifecycle

Specify taint tolerations. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/

Defines topologySpreadConstraint rules. See https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/