Skip to content

Commit

Permalink
option to use PVC or nfs as volume (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
alin999 authored Oct 22, 2019
1 parent ab6a94a commit 57dcc68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ spec:
{{- end }}
volumes:
- name: storage
{- if .Values.NP_STORAGE_PVC_CLAIM_NAME }}
persistentVolumeClaim:
claimName: {{ .Values.NP_STORAGE_PVC_CLAIM_NAME }}
{{- else }}
nfs:
server: {{ .Values.NP_STORAGE_NFS_SERVER }}
path: {{ .Values.NP_STORAGE_NFS_PATH }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down
1 change: 1 addition & 0 deletions deploy/platformstorageapi/values-template.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
NP_STORAGE_NFS_SERVER: ''
NP_STORAGE_NFS_PATH: ''
NP_STORAGE_PVC_CLAIM_NAME: ''
IMAGE: neuro-docker-local-public.jfrog.io/platformstorageapi:IMAGE_TAG
NP_STORAGE_AUTH_URL: http://platformauthapi:8080
NP_STORAGE_REQUESTS_CPU: "0.1"
Expand Down

0 comments on commit 57dcc68

Please sign in to comment.