From bacdd45c1bf47e5855671351bed2b9c5b22cd48d Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 4 Sep 2019 09:55:35 -0700 Subject: add PV support for artifactbroker add PV/PVC files - update deployment files to use PVC and resolve permission issue of data dir - update values for the init container image Change-Id: I354043a79915d25bf1e5396b538b98b0dbdb7fe7 Issue-ID: MULTICLOUD-717 Signed-off-by: Liang Ding --- .../charts/multicloud-windriver/templates/deployment.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml') diff --git a/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml b/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml index e6f1456874..0cb1d733eb 100644 --- a/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml +++ b/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml @@ -39,6 +39,14 @@ spec: annotations: sidecar.istio.io/inject: "{{.Values.istioSidecar}}" spec: + initContainers: + - command: ["sh", "-c", "chown -R 100:101 /data"] + image: "{{ .Values.global.ubuntuInitRepository }}/{{ .Values.global.ubuntuInitImage }}" + imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + name: {{ include "common.name" . }}-init + volumeMounts: + - mountPath: /data + name: artifact-data containers: - env: - name: MSB_ADDR @@ -122,7 +130,12 @@ spec: configMap: name: {{ include "common.fullname" . }}-log-configmap - name: artifact-data + {{- if .Values.persistence.enabled }} + persistentVolumeClaim: + claimName: {{ include "common.fullname" . }} + {{- else }} emptyDir: {} + {{- end }} imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" restartPolicy: Always -- cgit 1.2.3-korg