From f885e0239e0a60d5fe046445bf8c28e895e55fd7 Mon Sep 17 00:00:00 2001 From: sido Date: Wed, 27 Jun 2018 11:33:55 +0200 Subject: [PATCH] added volumes to nexus --- nexus/v0.1.x/templates/deployments/nexus-deployment.yaml | 8 ++++++++ nexus/v0.1.x/templates/volumes/nexus-pv.yaml | 2 +- nexus/v0.1.x/templates/volumes/nexus-pvc.yaml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nexus/v0.1.x/templates/deployments/nexus-deployment.yaml b/nexus/v0.1.x/templates/deployments/nexus-deployment.yaml index 1270efc..5a6a1b1 100644 --- a/nexus/v0.1.x/templates/deployments/nexus-deployment.yaml +++ b/nexus/v0.1.x/templates/deployments/nexus-deployment.yaml @@ -18,6 +18,10 @@ spec: labels: app: {{ .Values.nexus.name }} creationTimestamp: null + volumes: + - name: molgenis-nexus-data + persistentVolumeClaim: + claimName: molgenis-nexus-data spec: restartPolicy: {{ .Values.nexus.restartPolicy }} containers: @@ -27,3 +31,7 @@ spec: ports: - containerPort: {{ .Values.nexus.port.ui }} - containerPort: {{ .Values.nexus.port.docker }} + volumeMounts: + - name: molgenis-nexus-data + mountPath: "/nexus-data" + diff --git a/nexus/v0.1.x/templates/volumes/nexus-pv.yaml b/nexus/v0.1.x/templates/volumes/nexus-pv.yaml index 57e9639..169280c 100644 --- a/nexus/v0.1.x/templates/volumes/nexus-pv.yaml +++ b/nexus/v0.1.x/templates/volumes/nexus-pv.yaml @@ -7,7 +7,7 @@ metadata: spec: storageClassName: nfs-class capacity: - storage: 5Gi + storage: 50Gi accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Retain diff --git a/nexus/v0.1.x/templates/volumes/nexus-pvc.yaml b/nexus/v0.1.x/templates/volumes/nexus-pvc.yaml index c0c7f68..603ecef 100644 --- a/nexus/v0.1.x/templates/volumes/nexus-pvc.yaml +++ b/nexus/v0.1.x/templates/volumes/nexus-pvc.yaml @@ -8,4 +8,4 @@ spec: - ReadWriteMany resources: requests: - storage: 5Gi \ No newline at end of file + storage: 50Gi \ No newline at end of file