k8s-manifests/jupyter/base/charts/jupyterhub/templates/hub/pvc.yaml
Micke Nordin 324724c3b1
Jupytherhub:
Export 3.0.3 like so:
```
helm repo add jupyterhub https://hub.jupyter.org/helm-chart/
helm fetch jupyterhub/jupyterhub --version 3.0.3 --untar --untardir .
```
2023-09-25 16:29:56 +02:00

26 lines
750 B
YAML

{{- if eq .Values.hub.db.type "sqlite-pvc" -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ include "jupyterhub.hub-pvc.fullname" . }}
labels:
{{- include "jupyterhub.labels" . | nindent 4 }}
{{- with .Values.hub.db.pvc.annotations }}
annotations:
{{- . | toYaml | nindent 4 }}
{{- end }}
spec:
{{- with .Values.hub.db.pvc.selector }}
selector:
{{- . | toYaml | nindent 4 }}
{{- end }}
{{- if typeIs "string" .Values.hub.db.pvc.storageClassName }}
storageClassName: {{ .Values.hub.db.pvc.storageClassName | quote }}
{{- end }}
accessModes:
{{- .Values.hub.db.pvc.accessModes | toYaml | nindent 4 }}
resources:
requests:
storage: {{ .Values.hub.db.pvc.storage | quote }}
{{- end }}