mirror of
https://github.com/truenas/charts.git
synced 2026-06-16 15:08:11 +08:00
1.7 KiB
1.7 KiB
Command / Args
Key: command
- Type:
list - Default:
stringor[] - Helm Template:
- String: ✅
- List entry: ✅
command key overrides the entrypoint of the container
Examples:
# String / Single command
command: ./custom-script.sh
# String / Single command (tpl)
command: "{{ .Values.customCommand }}"
# List
command:
- /bin/sh
- -c
- |
echo "Doing things..."
# List (tpl)
command:
- /path/to/executable
- --port
- "{{ .Values.service.main.ports.main.port }}"
Key: args
- Type:
list - Default:
stringor[] - Helm Template:
- String: ✅
- List entry: ✅
args key adds arguments to the entrypoint of the container
Examples:
# String / Single args
args: worker
# String / Single arg (tpl)
arg: "{{ .Values.mode }}"
# List
arg:
- --port
- 8080
# List (tpl)
arg:
- --port
- "{{ .Values.service.main.ports.main.port }}"
Key: extraArgs
- Type:
list - Default:
stringor[] - Helm Template:
- String: ✅
- List entry: ✅
extraArgs key appends arguments to args of the container.
This is useful for exposing it on SCALE GUI, so users can append
arguments on top of the ones defined from the chart developer
Examples:
# String / Single args
extraArgs: some_extra_arg
# String / Single arg (tpl)
extraArgs: "{{ .Values.some_key }}"
# List
extraArgs:
- --photos_path
- /path/to/photos
# List (tpl)
extraArgs:
- --photos_path
- "{{ .Values.persistence.photos.mountPath }}"
Kubernetes Documentation: