diff options
author | Liang Ding <liang.ding@intel.com> | 2019-09-04 09:55:35 -0700 |
---|---|---|
committer | Liang Ding <liang.ding@intel.com> | 2019-09-12 04:40:31 +0000 |
commit | bacdd45c1bf47e5855671351bed2b9c5b22cd48d (patch) | |
tree | 01d10cd6fda4430a33a895e149590ec768508fc9 /kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml | |
parent | c0135d6f397621fca4c16cfd390e4d848d1d07a7 (diff) |
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 <liang.ding@intel.com>
Diffstat (limited to 'kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml')
-rw-r--r-- | kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
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 |