diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-08-18 14:25:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-18 14:25:53 +0000 |
commit | fda0e908856c5c48720f011771fa3195f86dfc6d (patch) | |
tree | 8dfd07dfc985ba42717c7cfc49b1e8f9822a1a81 /kubernetes | |
parent | 5d135b4cc4df517d3a7541656000186f3d1e8933 (diff) | |
parent | 6a385ce0bf95f6eba1686b95a2b5a624caa6ed4c (diff) |
Merge "No root access to mariadb from portal app"
Diffstat (limited to 'kubernetes')
-rw-r--r-- | kubernetes/portal/components/portal-mariadb/templates/deployment.yaml | 7 | ||||
-rw-r--r-- | kubernetes/portal/components/portal-mariadb/values.yaml | 3 |
2 files changed, 9 insertions, 1 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 }}" diff --git a/kubernetes/portal/components/portal-mariadb/values.yaml b/kubernetes/portal/components/portal-mariadb/values.yaml index 08157f7b92..40b1775ae9 100644 --- a/kubernetes/portal/components/portal-mariadb/values.yaml +++ b/kubernetes/portal/components/portal-mariadb/values.yaml @@ -21,7 +21,8 @@ global: # global defaults persistence: {} readinessRepository: oomk8s readinessImage: readiness-check:2.0.0 - + busyBoxImage: busybox:1.30 + busyBoxRepository: docker.io # application image repository: nexus3.onap.org:10001 |