From e3d48562bb3f49fa1807d78b92beea9dd803b136 Mon Sep 17 00:00:00 2001 From: sido Date: Wed, 27 Jun 2018 17:02:59 +0200 Subject: [PATCH] volumes permissions --- .../templates/deployments/nexus-deployment.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nexus/v0.1.x/templates/deployments/nexus-deployment.yaml b/nexus/v0.1.x/templates/deployments/nexus-deployment.yaml index a94d79f..c6b9866 100644 --- a/nexus/v0.1.x/templates/deployments/nexus-deployment.yaml +++ b/nexus/v0.1.x/templates/deployments/nexus-deployment.yaml @@ -24,15 +24,15 @@ spec: persistentVolumeClaim: claimName: molgenis-nexus-data restartPolicy: {{ .Values.nexus.restartPolicy }} + initContainers: + - name: volume-mount-nexus + image: busybox + command: ["sh", "-c", "chown -R 200:200 /gcc/molgenis/nexus"] + volumeMounts: + - name: molgenis-nexus-data + mountPath: "/nexus-data" containers: - name: {{ .Values.nexus.name }} - initContainers: - - name: volume-mount-nexus - image: busybox - command: ["sh", "-c", "chown -R 200:200 /gcc/molgenis/nexus"] - volumeMounts: - - name: molgenis-nexus-data - mountPath: "/nexus-data" image: "{{ .Values.nexus.image.repository }}:{{ .Values.nexus.image.tag }}" imagePullPolicy: {{ .Values.nexus.image.pullPolicy }} ports: