oc-tools/oc-mongo-helm/templates/pvc.yaml

17 lines
401 B
YAML
Raw Normal View History

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.mongo.pvcName }}
labels:
app: mongo
release: {{ .Release.Name }}
spec:
accessModes:
- {{ .Values.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass }}
{{- end }}