summaryrefslogtreecommitdiffstats
path: root/kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2019-04-17 18:35:02 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-17 18:35:02 +0000
commitab4a2f57d51b76a94ff5dd2c6c6cc7560032c054 (patch)
tree4ce01a860a239f18d02ff29a2a0aed9aadac61a6 /kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml
parent8421c6c2a0f4657cce55eef25a10a92519d9388d (diff)
parent4d9f35fc0c9c437b00335a75bd0201572ebfa544 (diff)
Merge "Allow dr-node containers to run as non-root"
Diffstat (limited to 'kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml')
-rw-r--r--kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml9
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 79e07a9bf0..a508886f10 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 }}"