summaryrefslogtreecommitdiffstats
path: root/kubernetes/aaf/charts/aaf-service/templates/deployment.yaml
diff options
context:
space:
mode:
authorChrisC <christophe.closset@intl.att.com>2020-03-19 15:53:31 -0500
committerChrisC <christophe.closset@intl.att.com>2020-04-07 12:06:29 +0200
commitec86a530ab1aec15981a257d2a0980d2fceee3ad (patch)
tree157891645a4cef92aa523a2b3644f4eb152a3397 /kubernetes/aaf/charts/aaf-service/templates/deployment.yaml
parentbcea64b75f3d8f17759fed3ad7f0051a5874b37c (diff)
AAF OOM 2.1.20
Cleaned up up configs, JDK11 fixes, Hello and Agent works, now a model for Apps non-root fix Issue-ID: AAF-1081, AAF-1102 Signed-off-by: Instrumental <jgonap@stl.gathman.org> Signed-off-by: ChrisC <christophe.closset@intl.att.com> Change-Id: I4947075029db8abd7d2072b6b82064af8e2daa3e
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 }}