defaultPodOptions
Set default options for all controllers / pods here. Each of these options can be overridden on a controller level. Useful for setting node selectors, tolerations, security contexts, or service accounts that should apply to every pod.
object
Properties
Section titled “Properties”| Property | Type | Required | Default | Description |
|---|---|---|---|---|
affinity | object | No | - | Set affinity constraint rules. Helm templates can be used… |
annotations | object / null | No | - | Annotations to set on the item. |
automountServiceAccountToken | boolean | No | false | Set to true to automatically mount the service account to… |
dnsConfig | object | No | - | Specifies the DNS parameters of a pod. Parameters specifi… |
dnsPolicy | string | No | - | Configure the Pod DNS policy. Defaults to ‘ClusterFir… |
enableServiceLinks | boolean | No | false | Enable/disable the generation of environment variables fo… |
hostAliases | array | No | - | Use hostAliases to add custom entries to /etc/hosts - map… |
hostIPC | boolean | No | false | Set to true to use the host’s ipc namespace. |
hostNetwork | boolean | No | false | Set to false to disable host networking on the Pod. When … |
hostPID | boolean | No | false | Set to true to use the host’s pid namespace. |
hostUsers | boolean / null | No | - | Set to false to create a new userns for the Pod. (Require… |
hostname | string | No | - | Set the Pod’s hostname. |
imagePullSecrets | array | No | - | Set image pull secrets. |
labels | object / null | No | - | Labels to set on the item. |
nodeSelector | object | No | - | Node selection constraint. See https://kubernetes.io/docs… |
priorityClassName | string | No | - | Custom priority class for different treatment by the sche… |
resizePolicy | array | No | - | Pod-level resize policy for controlling container restart… |
resourceClaims | array | No | - | ResourceClaims defines which ResourceClaims must be alloc… |
resources | object | No | - | Set the resource requests / limits for the Pod. (Requires… |
restartPolicy | string | No | - | Set container restart policy. Defaults to ‘Always'… |
runtimeClassName | string | No | - | Set a runtimeClassName other than the default one (ie: `n… |
schedulerName | string | No | - | Set a custom scheduler name. |
schedulingGates | array | No | - | SchedulingGates is an opaque list of values that if speci… |
securityContext | object | No | - | Configure the Security Context for the Pod. |
shareProcessNamespace | boolean / null | No | false | Allows sharing process namespace between containers in a … |
terminationGracePeriodSeconds | integer / null | No | - | Duration in seconds the pod needs to terminate gracefully… |
tolerations | array | No | - | Specify taint tolerations. See https://kubernetes.io/docs… |
topologySpreadConstraints | array | No | - | Defines topologySpreadConstraint rules. See https://kuber… |
Property Details
Section titled “Property Details”automountServiceAccountToken
Section titled “automountServiceAccountToken”Set to true to automatically mount the service account token.
dnsPolicy
Section titled “dnsPolicy”Configure the Pod DNS policy. Defaults to ‘ClusterFirst’ if hostNetwork is false and ‘ClusterFirstWithHostNet’ if hostNetwork is true.
enableServiceLinks
Section titled “enableServiceLinks”Enable/disable the generation of environment variables for services. See https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
hostAliases
Section titled “hostAliases”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/
hostNetwork
Section titled “hostNetwork”Set to false to disable host networking on the Pod. When using hostNetwork, make sure you set dnsPolicy to ‘ClusterFirstWithHostNet’
hostUsers
Section titled “hostUsers”Set to false to create a new userns for the Pod. (Requires Kubernetes 1.29 or newer)
nodeSelector
Section titled “nodeSelector”Node selection constraint. See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
priorityClassName
Section titled “priorityClassName”Custom priority class for different treatment by the scheduler.
resizePolicy
Section titled “resizePolicy”Pod-level resize policy for controlling container restart on resource resize. (Requires Kubernetes 1.36 or newer with InPlacePodLevelResourcesVerticalScaling enabled)
resourceClaims
Section titled “resourceClaims”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)
restartPolicy
Section titled “restartPolicy”Set container restart policy. Defaults to ‘Always’. When controller.type is ‘cronjob’ it defaults to ‘Never’.
runtimeClassName
Section titled “runtimeClassName”Set a runtimeClassName other than the default one (ie: nvidia).
schedulingGates
Section titled “schedulingGates”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/
shareProcessNamespace
Section titled “shareProcessNamespace”Allows sharing process namespace between containers in a Pod. See https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
terminationGracePeriodSeconds
Section titled “terminationGracePeriodSeconds”Duration in seconds the pod needs to terminate gracefully. See https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#lifecycle
tolerations
Section titled “tolerations”Specify taint tolerations. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
topologySpreadConstraints
Section titled “topologySpreadConstraints”Defines topologySpreadConstraint rules. See https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/