summaryrefslogtreecommitdiffstats
path: root/kubernetes/consul/charts/consul-server/templates/statefulset.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-11-30 07:47:29 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-30 07:47:29 +0000
commit2d0eafec73643294cb5016b8e74d57a68608f822 (patch)
tree043fa8dd4bc1371bc5ace9a7546715eac4ed2552 /kubernetes/consul/charts/consul-server/templates/statefulset.yaml
parent8aad493ec086c48e919e4f7ef85148e6532ffc46 (diff)
parent217acfdf611de5bc52246acedcf248e32712f561 (diff)
Merge "[CONSUL] Make consul run as non-root"
Diffstat (limited to 'kubernetes/consul/charts/consul-server/templates/statefulset.yaml')
-rw-r--r--kubernetes/consul/charts/consul-server/templates/statefulset.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/consul/charts/consul-server/templates/statefulset.yaml b/kubernetes/consul/charts/consul-server/templates/statefulset.yaml
index 882e98fea3..16fda3a510 100644
--- a/kubernetes/consul/charts/consul-server/templates/statefulset.yaml
+++ b/kubernetes/consul/charts/consul-server/templates/statefulset.yaml
@@ -41,7 +41,10 @@ spec:
- name: "{{ include "common.namespace" . }}-docker-registry-key"
containers:
- name: {{ include "common.name" . }}
- image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}
+ image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
+ securityContext:
+ runAsUser: {{ .Values.securityContext.runAsUser }}
+ runAsGroup: {{ .Values.securityContext.runAsGroup }}
command: ["/usr/local/bin/docker-entrypoint.sh"]
args:
- "agent"