In deployment.yaml in:
containers:
- name: {{ .Values.stand }}-container
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- if $.Values.command }}
command:
{{ .Values.command.cmd }}
{{- end }}
{{- if or $.Values.env $.Values.envSecrets }}
I tried adding:
{{- if $.Values.command }}
command:
{{ .Values.command.cmd }}
{{- end }}
Then I tried to pass the command:
helm install NAME nexus/stand
--set 'command.cmd[0]=- /bin/sh' \
--set 'command.cmd[1]=- -с' \
--set 'command.cmd[2]=- |' \
--set 'command.cmd[3]=while true; do' \
--set 'command.cmd[4]=sleep 60;' \
--set 'command.cmd[5]=done'
but nothing works.
How to via --set pass?
command:
- /bin/sh
- -c
- |
while true; do
sleep 60;
done
Thank you.