X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fconsul%2Ftemplates%2Fdeployment.yaml;h=c5d12a4693700f5dc32825e014df75ba08988262;hb=e4aac7a3c577b7bb9eaae93387d482f952ee4b72;hp=6f1c57967fe79b4f005c6509d4336c41e7e124b7;hpb=7623a932f4b725cab55386aaa640a1450deca0d3;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: {}