6.5 KiB
6.5 KiB
title
| title |
|---|
| FixedEnv |
:::note
- Examples under each key are only to be used as a placement guide
- See the Full Examples section for complete examples.
:::
:::tip
Variable names will be scanned for duplicates across all secrets, configmaps, env, envList and fixedEnv and will throw an error if it finds any.
:::
Appears in
.Values.workload.$name.podSpec.containers.$name.Values.workload.$name.podSpec.initContainers.$name
fixedEnv
Override fixedEnv for the container
:::note
By default it will set the following environment variables:
TZ: Default TZ or fixedEnv.TZUMASK: Default UMASK or fixedEnv.UMASKUMASK_SET: Default UMASK or fixedEnv.UMASKS6_READ_ONLY_ROOT:1- Only when
readOnlyRootFilesystemorrunAsNonRootistrue
- Only when
PUID,USER_ID,UID: Default PUID or fixedEnv.PUID- Only when
runAsUserorrunAsGroupis0
- Only when
PGID,GROUP_ID,GID: Same asfsGroup- Only when
runAsUserorrunAsGroupis0
- Only when
NVIDIA_DRIVER_CAPABILITIES: Default NVIDIA_CAPS or fixedEnv.NVIDIA_CAPS- Only when
nvidia.com/gpuis set to> 0underresources
- Only when
:::
| Key | workload.$name.podSpec.containers.$name.fixedEnv |
| Type | map |
| Required | ❌ |
Helm tpl |
❌ |
| Default | {} |
Example
workload:
workload-name:
podSpec:
containers:
container-name:
fixedEnv: {}
fixedEnv.TZ
Override the timezone for the container
| Key | workload.$name.podSpec.containers.$name.fixedEnv.TZ |
| Type | string |
| Required | ❌ |
Helm tpl |
❌ |
| Default | See here |
Example
workload:
workload-name:
podSpec:
containers:
container-name:
fixedEnv:
TZ: "America/New_York"
fixedEnv.UMASK
Override the umask for the container
| Key | workload.$name.podSpec.containers.$name.fixedEnv.UMASK |
| Type | string |
| Required | ❌ |
Helm tpl |
❌ |
| Default | See here |
Example
workload:
workload-name:
podSpec:
containers:
container-name:
fixedEnv:
UMASK: "003"
fixedEnv.PUID
Override the PUID for the container
| Key | workload.$name.podSpec.containers.$name.fixedEnv.PUID |
| Type | string |
| Required | ❌ |
Helm tpl |
❌ |
| Default | See here |
Example
workload:
workload-name:
podSpec:
containers:
container-name:
fixedEnv:
PUID: "0"
fixedEnv.NVIDIA_CAPS
Override the NVIDIA_CAPS for the container
| Key | workload.$name.podSpec.containers.$name.fixedEnv.NVIDIA_CAPS |
| Type | list |
| Required | ❌ |
Helm tpl |
❌ |
| Default | See here |
Example
workload:
workload-name:
podSpec:
containers:
container-name:
fixedEnv:
NVIDIA_CAPS:
- compute
Full Examples
workload:
workload-name:
enabled: true
primary: true
podSpec:
containers:
container-name:
enabled: true
primary: true
fixedEnv:
TZ: "America/New_York"
NVIDIA_CAPS:
- compute
UMASK: "003"
PUID: "0"