summaryrefslogtreecommitdiffstats
path: root/kubernetes/portal/components/portal-mariadb/templates/deployment.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-08-18 14:25:53 +0000
committerGerrit Code Review <gerrit@onap.org>2020-08-18 14:25:53 +0000
commitfda0e908856c5c48720f011771fa3195f86dfc6d (patch)
tree8dfd07dfc985ba42717c7cfc49b1e8f9822a1a81 /kubernetes/portal/components/portal-mariadb/templates/deployment.yaml
parent5d135b4cc4df517d3a7541656000186f3d1e8933 (diff)
parent6a385ce0bf95f6eba1686b95a2b5a624caa6ed4c (diff)
Merge "No root access to mariadb from portal app"
Diffstat (limited to 'kubernetes/portal/components/portal-mariadb/templates/deployment.yaml')
-rw-r--r--kubernetes/portal/components/portal-mariadb/templates/deployment.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/kubernetes/portal/components/portal-mariadb/templates/deployment.yaml b/kubernetes/portal/components/portal-mariadb/templates/deployment.yaml
index bcd223c7e6..ec6cc50634 100644
--- a/kubernetes/portal/components/portal-mariadb/templates/deployment.yaml
+++ b/kubernetes/portal/components/portal-mariadb/templates/deployment.yaml
@@ -34,6 +34,13 @@ spec:
app: {{ include "common.name" . }}
release: {{ include "common.release" . }}
spec:
+ initContainers:
+ - name: volume-permissions
+ image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
+ command: ['sh', '-c', 'chmod -R 777 /var/lib/mysql']
+ volumeMounts:
+ - mountPath: /var/lib/mysql
+ name: mariadb-data
containers:
- name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"