X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fconsul%2Ftemplates%2Fdeployment.yaml;h=c5d12a4693700f5dc32825e014df75ba08988262;hb=8c26e59d30a185186cf33988a0dbb859409f73eb;hp=6f1c57967fe79b4f005c6509d4336c41e7e124b7;hpb=dd714d1a2746b16644abb42a3f4d3824cbc1132e;p=oom.git diff --git a/kubernetes/consul/templates/deployment.yaml b/kubernetes/consul/templates/deployment.yaml index 6f1c57967f..c5d12a4693 100644 --- a/kubernetes/consul/templates/deployment.yaml +++ b/kubernetes/consul/templates/deployment.yaml @@ -56,11 +56,13 @@ spec: - mountPath: /consul/config name: consul-agent-config-dir containers: - - image: "{{ include "common.repository" . }}/{{ .Values.image }}" + - image: {{ include "repositoryGenerator.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 @@ -81,6 +83,7 @@ spec: - mountPath: /consul/certs name: consul-agent-certs-config resources: {{ include "common.resources" . | nindent 10 }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: consul-agent-config-dir emptyDir: {}