11 KiB
Values.yaml Explained
global
Show / Hide
Available options:global:
nameOverride: ""
annotations: {}
labels: {}
nameOverride
Show / Hide
Sets an override for the suffix of the full name. (Applies to current chart and all sub-charts)
- Type:
string - Default:
"" - Helm template: ❌
Examples: Values.yaml
global:
nameOverride: something
Appends something to:
- Deployment
- metadata.name
- spec.template.spec.containers[0].name
Sets something to:
- Deployment
- metadata.app
- metadata.app.kubernetes.io/name
- spec.selector.matchLabels.app
- spec.selector.matchLabels.app.kubernetes.io/name
- spec.template.metadata.annotations.app
- spec.template.metadata.annotations.app
- spec.template.metadata.labels.app.kubernetes.io/name
- spec.template.metadata.labels.app.kubernetes.io/name
annotations
Show / Hide
Sets additional global annotations.
- Type:
dict - Default:
{} - Helm Template: ✅
- On values only
Examples: Values.yaml
global:
annotations:
key1: value
key2: "{{ .Values.some.key }}"
Sets all key: value pairs to:
- Deployment
- metadata.annotations
labels
Show / Hide
Set additional global labels. Helm templates can be used.
- Type:
dict - Default:
{} - Helm Template: ✅
- On values only
Examples:
Values.yaml
global:
labels:
key1: value
key2: "{{ .Values.some.key }}"
Sets all key: value pairs to:
- Deployment
- metadata.labels
nameOverride
Sets an override for the suffix of the full name. (Applies to current chart only)
Show / Hide
- Type:
string - Default:
"" - Helm template: ❌
Examples: Values.yaml
nameOverride: something
Appends something to:
- Deployment
- metadata.name
- spec.template.spec.containers[0].name
Sets something to:
- Deployment
- metadata.app
- metadata.app.kubernetes.io/name
- spec.selector.matchLabels.app
- spec.selector.matchLabels.app.kubernetes.io/name
- spec.template.metadata.annotations.app
- spec.template.metadata.annotations.app
- spec.template.metadata.labels.app.kubernetes.io/name
- spec.template.metadata.labels.app.kubernetes.io/name
podAnnotations
Set annotations on the pod.
Show / Hide
- Type:
dict - Default:
{} - Helm Template: ✅
- On values only
Examples: Values.yaml
podAnnotations:
key1: value
key2: "{{ .Values.some.key }}"
Sets all key: value pairs to:
- Deployment
- spec.template.metadata.annotations
podLabels
Set labels on the pod.
Show / Hide
- Type:
dict - Default:
{} - Helm Template: ✅
- On values only
Examples: Values.yaml
podLabels:
key1: value
key2: "{{ .Values.some.key }}"
Sets all key: value pairs to:
- Deployment
- spec.template.metadata.labels
command
Override the command(s) for the main container
Show / Hide
- Type:
stringorlist - Default:
[] - Helm Template: ✅
Examples: Values.yaml
command: entrypoint.sh
command: "{{ .Values.some.key }}"
command:
- /bin/sh
- -c
- |
echo "something"
command:
- "{{ .Values.shell.option }}"
- -c
- |
echo {{ .Values.some.key | quote }}
Coverts command to a list and sets it to:
- Deployment
- spec.template.spec.containers[0].command
args
Override the args for the main container
Show / Hide
- Type:
stringorlist - Default:
[] - Helm Template: ✅
Examples: Values.yaml
args: worker
args: "{{ .Values.some.key }}"
args:
- --port
- 8000
args:
- --port
- "{{ .Values.some.key }}"
Coverts args to a list and sets it to:
- Deployment
- spec.template.spec.containers[0].args
extraArgs
Appends args to the args for the main container.
If no args are defined, extraArgs will still be set.
Mainly built for the SCALE GUI
Show / Hide
- Type:
stringorlist - Default:
[] - Helm Template: ✅
Examples: Values.yaml
extraArgs: something
extraArgs: "{{ .Values.some.key }}"
extraArgs:
- --photosPath
- /something
extraArgs:
- --photosPath
- "{{ .Values.some.key }}"
Coverts extraArgs to a list and appends it to:
- Deployment
- spec.template.spec.containers[0].args
tty
Specifies whether the main container in a pod runs with TTY enabled.
Show / Hide
- Type:
boolean - Default:
false - Helm Template: ❌
Examples: Values.yaml
tty: true
tty: false
Sets tty to:
- Deployment
- spec.template.spec.containers[0].tty
stdin
Specifies whether the main container in a pod runs with stdin enabled.
Show / Hide
- Type:
boolean - Default:
false - Helm Template: ❌
Examples: Values.yaml
stdin: true
stdin: false
Sets stdin to:
- Deployment
- spec.template.spec.containers[0].stdin
podSecurityContext
Configure the Security Context for the Pod
Show / Hide
Available options:
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
supplementalGroups: []
fsGroupChangePolicy: OnRootMismatch
securityContext
Configure the Security Context for the main container
Show / Hide
Available options:
securityContext:
privileged: false
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
add: []
drop: []
privileged
Specifies privileged status on securityContext for the main container
Show / Hide
- Type:
boolean - Default:
false - Helm Template: ❌
Examples: Values.yaml
securityContext:
privileged: false
securityContext:
privileged: true
Sets privileged on securityContext to:
- Deployment
- spec.template.spec.containers[0].securityContext.privileged
readOnlyRootFilesystem
Specifies readOnlyRootFilesystem status on securityContext for the main container
Show / Hide
- Type:
boolean - Default:
true - Helm Template: ❌
Examples: Values.yaml
securityContext:
readOnlyRootFilesystem: false
securityContext:
readOnlyRootFilesystem: true
Sets readOnlyRootFilesystem on securityContext to:
- Deployment
- spec.template.spec.containers[0].securityContext.readOnlyRootFilesystem
allowPrivilegeEscalation
Specifies allowPrivilegeEscalation status on securityContext for the main container
Show / Hide
- Type:
boolean - Default:
false - Helm Template: ❌
Examples: Values.yaml
securityContext:
allowPrivilegeEscalation: false
securityContext:
allowPrivilegeEscalation: true
Sets allowPrivilegeEscalation on securityContext to:
- Deployment
- spec.template.spec.containers[0].securityContext.allowPrivilegeEscalation
runAsNonRoot
Specifies runAsNonRoot status on securityContext for the main container
Show / Hide
- Type:
boolean - Default:
true - Helm Template: ❌
Examples: Values.yaml
securityContext:
runAsNonRoot: false
securityContext:
runAsNonRoot: true
Sets runAsNonRoot on securityContext to:
- Deployment
- spec.template.spec.containers[0].securityContext.runAsNonRoot
capabilities
Specifies capabilities to add or drop on securityContext for the main container
Show / Hide
- Type:
boolean - Default:
- add:
[] - drop:
[]
- add:
- Helm Template: ✅
Examples: Values.yaml
capabilities:
add:
- SYS_ADMIN
- "{{ .Values.some.key }}"
drop:
- NET_RAW
- "{{ .Values.some.key }}"
Sets capabilities to add or drop on securityContext to:
- Deployment
- spec.template.spec.containers[0].securityContext.capabilities.add
- spec.template.spec.containers[0].securityContext.capabilities.drop
lifecycle
Configure the lifecycle for the main container.
Show / Hide
- Type:
dict - Default:
{} - Helm Template: ✅
Examples: Values.yaml
lifecycle:
postStart:
command:
- command1
- "{{ .Values.some.key }}"
preStop:
command:
- command1
- "{{ .Values.some.key }}"
postStart:
command: some_command
preStop:
command: some_command
Sets lifecycle to:
- Deployment
- spec.template.spec.containers[0].lifecycle.preStop
- spec.template.spec.containers[0].lifecycle.postStart
termination
Configure the termination for the main container.
Show / Hide
Available options:termination:
messagePath: ""
messagePolicy: ""
gracePeriodSeconds: 10
messagePath
Configure the path at which the file to which the main container's termination message will be written
Show / Hide
- Type:
string - Default:
"" - Helm Template: ✅
Examples: Values.yaml
termination:
messagePath: /some/path
Sets messagePath to:
- Deployment
- spec.template.spec.containers[0].terminationMessagePath
messagePolicy
Indicate how the main container's termination message should be populated.
Show / Hide
- Type:
string - Default:
"" - Helm Template: ✅
Valid options:
- File
- FallbackToLogsOnError
Examples: Values.yaml
termination:
messagePolicy: File
Sets messagePolicy to:
- Deployment
- spec.template.spec.containers[0].terminationMessagePolicy
gracePeriodSeconds
Duration in seconds the pod needs to terminate gracefully
Show / Hide
- Type:
int - Default:
10 - Helm Template: ❌
Examples: Values.yaml
termination:
gracePeriodSeconds: File
Sets gracePeriodSeconds to:
- Deployment
- TODO: