christmas/chart/templates/pv.yaml
Nathan Lanier 31531b607d
Create Helm Chart (#43)
* chore: initial commit of helm chart yaml

* chore: add docs and reset ingress classname default

* chore: helm repo add and install documentation

* chore: add env variables to deployment and values

* fix: remove port env variable
2022-10-18 14:59:34 -04:00

18 lines
No EOL
469 B
YAML

{{- if .Values.persistence.enabled -}}
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ include "christmas-community.fullname" . }}-pv
labels:
{{- include "christmas-community.labels" . | nindent 4 }}
spec:
storageClassName: local-path
persistentVolumeReclaimPolicy: Delete
capacity:
storage: 2Gi
accessModes:
- ReadWriteOnce
hostPath:
path: {{- toYaml .Values.persistence.mountPath | indent 8}}
volumeMode: Filesystem
{{- end }}