aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/aaf/charts/aaf-service/templates/deployment.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-04-08 07:38:21 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-08 07:38:21 +0000
commit705a9cf88b4840507c9e5a9e7a009e3772229f04 (patch)
tree3871ee27358e2c46c55cb1f4413b4cd9580968cc /kubernetes/aaf/charts/aaf-service/templates/deployment.yaml
parentf3601a7187335e16e46ddb3746ec183f8c65f985 (diff)
parentec86a530ab1aec15981a257d2a0980d2fceee3ad (diff)
Merge "AAF OOM 2.1.20"
Diffstat (limited to 'kubernetes/aaf/charts/aaf-service/templates/deployment.yaml')
-rw-r--r--kubernetes/aaf/charts/aaf-service/templates/deployment.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/kubernetes/aaf/charts/aaf-service/templates/deployment.yaml b/kubernetes/aaf/charts/aaf-service/templates/deployment.yaml
index 9b1386b926..555f4ac815 100644
--- a/kubernetes/aaf/charts/aaf-service/templates/deployment.yaml
+++ b/kubernetes/aaf/charts/aaf-service/templates/deployment.yaml
@@ -31,6 +31,23 @@ spec:
release: {{ include "common.release" . }}
spec:
initContainers:
+ - name: fix-permission
+ command:
+ - /bin/sh
+ args:
+ - -c
+ - |
+ chmod -R 775 /opt/app/aaf/status
+ chown -R 1000:1000 /opt/app/aaf/status
+ chmod -R 775 /opt/app/osaaf
+ chown -R 1000:1000 /opt/app/osaaf
+ image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
+ imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ volumeMounts:
+ - mountPath: /opt/app/aaf/status
+ name: aaf-status-vol
+ - mountPath: /opt/app/osaaf
+ name: aaf-config-vol
- name: {{ include "common.name" . }}-config-container
image: {{ .Values.global.repository }}/{{.Values.global.aaf.config.image}}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}