jupyterlab-pvc.yaml 887 B

123456789101112131415161718192021222324252627
  1. {{- if and (not .Values.jupyterlab.persistence.existingClaim ) .Values.jupyterlab.persistence.enabled }}
  2. kind: PersistentVolumeClaim
  3. apiVersion: v1
  4. metadata:
  5. name: jupyterlab-data
  6. labels:
  7. tier: aihub-spark
  8. component: jupyterlab-pvc
  9. release: {{ .Release.Name }}
  10. annotations:
  11. {{- if .Values.jupyterlab.persistence.annotations}}
  12. {{- toYaml .Values.jupyterlab.persistence.annotations | nindent 4 }}
  13. {{- end }}
  14. spec:
  15. accessModes: [{{ .Values.jupyterlab.persistence.accessMode | quote }}]
  16. resources:
  17. requests:
  18. storage: {{ .Values.jupyterlab.persistence.size | quote }}
  19. {{- if .Values.jupyterlab.persistence.storageClassName }}
  20. {{- if (eq "-" .Values.jupyterlab.persistence.storageClassName) }}
  21. storageClassName: ""
  22. {{- else }}
  23. storageClassName: "{{ .Values.jupyterlab.persistence.storageClassName }}"
  24. {{- end }}
  25. {{- end }}
  26. {{- end }}