- name: "{{ include "common.namespace" . }}-docker-registry-key"
initContainers:
- name: {{ include "common.name" . }}-chown
- image: {{ .Values.global.busyboxRepository | default .Values.busyboxRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
+ image: "{{ include "common.repository" . }}/{{ .Values.image }}"
command:
- sh
args:
- mountPath: /consul/config
name: consul-agent-config-dir
containers:
- - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
+ - image: {{ include "common.repository" . }}/{{ .Values.image }}
+ securityContext:
+ runAsUser: {{ .Values.securityContext.runAsUser }}
+ runAsGroup: {{ .Values.securityContext.runAsGroup }}
command:
- - sh
+ - docker-entrypoint.sh
args:
- - /usr/local/bin/docker-entrypoint.sh
- agent
- -client
- 0.0.0.0