diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-04-08 07:38:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-08 07:38:21 +0000 |
commit | 705a9cf88b4840507c9e5a9e7a009e3772229f04 (patch) | |
tree | 3871ee27358e2c46c55cb1f4413b4cd9580968cc /kubernetes/aaf/charts/aaf-cass/templates/deployment.yaml | |
parent | f3601a7187335e16e46ddb3746ec183f8c65f985 (diff) | |
parent | ec86a530ab1aec15981a257d2a0980d2fceee3ad (diff) |
Merge "AAF OOM 2.1.20"
Diffstat (limited to 'kubernetes/aaf/charts/aaf-cass/templates/deployment.yaml')
-rw-r--r-- | kubernetes/aaf/charts/aaf-cass/templates/deployment.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kubernetes/aaf/charts/aaf-cass/templates/deployment.yaml b/kubernetes/aaf/charts/aaf-cass/templates/deployment.yaml index b326aaf63c..eb785e2d9b 100644 --- a/kubernetes/aaf/charts/aaf-cass/templates/deployment.yaml +++ b/kubernetes/aaf/charts/aaf-cass/templates/deployment.yaml @@ -30,6 +30,24 @@ spec: app: {{ include "common.name" . }} 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 /var/lib/cassandra + chown -R 1000:1000 /var/lib/cassandra + 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: /var/lib/cassandra + name: aaf-cass-vol containers: - name: {{ include "common.name" . }} image: {{ .Values.global.repository }}/{{.Values.global.aaf.cass.image}} @@ -54,6 +72,8 @@ spec: value: {{.Values.global.aaf.cass.cluster_name}} - name: CASSANDRA_DC value: {{.Values.global.aaf.cass.dc}} + - name: CQLSH + value: "/opt/cassandra/bin/cqlsh" - name: HEAP_NEWSIZE value: {{.Values.global.aaf.cass.heap_new_size}} - name: MAX_HEAP_SIZE |