diff options
author | econwar <conor.ward@est.tech> | 2019-04-16 08:02:13 +0000 |
---|---|---|
committer | econwar <conor.ward@est.tech> | 2019-04-16 08:02:13 +0000 |
commit | 4d9f35fc0c9c437b00335a75bd0201572ebfa544 (patch) | |
tree | 99d0597217e86ef447e2da97d8dbeae60525ed5d /kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml | |
parent | b78ad8b04fff7bf5a97b828dbea6ab0a9e5817be (diff) |
Allow dr-node containers to run as non-root
Update image version to 2.1.0 that has year long certs
Change-Id: If17c569c6db879b6fcee9221307560a54f9cb422
Issue-ID: DMAAP-1134
Signed-off-by: econwar <conor.ward@est.tech>
Diffstat (limited to 'kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml')
-rw-r--r-- | kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml b/kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml index ec31f3f750..de3324fe19 100644 --- a/kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml +++ b/kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml @@ -45,6 +45,15 @@ spec: fieldRef: apiVersion: v1 fieldPath: metadata.namespace + - name: {{ include "common.name" . }}-permission-fixer + image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}" + imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + volumeMounts: + - mountPath: {{ .Values.persistence.spoolPath }} + name: {{ include "common.fullname" . }}-spool-data-pvc + - mountPath: {{ .Values.persistence.eventLogsPath }} + name: {{ include "common.fullname" . }}-event-logs-pvc + command: ["chown","-Rf","1000:1001", "/opt/app/datartr"] containers: - name: {{ include "common.name" . }} image: "{{ include "common.repository" . }}/{{ .Values.image }}" |