8.3 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 default 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 default 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 default 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 default 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 default container in a pod runs with stdin enabled.
Show / Hide
- Type:
boolean - Default:
false - Helm Template: ❌
Examples: Values.yaml
stdin: true
stdin: false
Sets stin 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 default 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 default 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 default 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 default 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 default 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 default 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