Skip to content

containers

Containers as dictionary items.

object

Keys are identifiers for containers instances.

containers:
main:
enabled: true
# ... configuration
secondary:
enabled: true
# ... configuration

Available properties:

PropertyTypeRequiredDefaultDescription
argsarray / stringNo-Arguments for the container entrypoint.
commandarray / stringNo-Command for the container entrypoint.
dependsOnarray / stringNo-Specify container dependencies to determine render order.
enabledbooleanNotrueSet to false to disable the container.
envarray / objectNo-Environment variables for the container. Supports multipl…
envFromarrayNo-Secrets and/or ConfigMaps to load as environment variable…
imageobjectNo-Image configuration for the container.
lifecycleobjectNo-Lifecycle event hooks (postStart, preStop) for the contai…
nameOverridestringNo-Override the container name.
portsarrayNo-Ports to expose from the container.
probesobjectNo-Probe settings for the container. See https://kubernetes
resizePolicyarrayNo-Configure whether the container should be restarted when …
resourcesobjectNo-Resource requests and limits for the container.
restartPolicystringNo-Restart policy for the container.
securityContextobjectNo-Security context for the container.
stdinbooleanNofalseKeep the standard input open on the container.
terminationMessagePathstringNo-Path at which the file to which the container’s termi…
terminationMessagePolicystringNo-How the container’s termination message should be pop…
ttybooleanNofalseAllocate a TTY for the container.
workingDirstringNo-Working directory for the container.

Environment variables for the container. Supports multiple syntax styles: simple map (key: value), list of K8s v1.EnvVar entries, and valueFrom references (configMapKeyRef, secretKeyRef, fieldRef, resourceFieldRef). Helm templates can be used in values. See the Environment Variables howto for detailed patterns and examples.

Secrets and/or ConfigMaps to load as environment variables in bulk. Each entry references either a ConfigMap (via configMap name or configMapRef.identifier) or a Secret (via secret name or secretRef.identifier), with optional prefix. See the Environment Variables howto for detailed patterns.

Configure whether the container should be restarted when resizing. This allows fine-grained control based on resource type (CPU or memory).

Path at which the file to which the container’s termination message will be written is mounted into the container’s filesystem. See https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#lifecycle for details.

How the container’s termination message should be populated. File will read the termination message from terminationMessagePath. FallbackToLogsOnError uses the last chunk of container log output if the termination message file is empty or the container errored. See https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#lifecycle for details.

Allowed values: File, FallbackToLogsOnError