infra4talos/apps-helm/uptime-kuma/templates/pvc.yaml

23 lines
574 B
YAML
Raw Permalink Normal View History

2023-12-07 15:10:22 +00:00
{{- if .Values.persistence.enabled -}}
{{- $fullName := include "uptime-kuma.fullname" . -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
labels:
{{- include "uptime-kuma.labels" . | nindent 4 }}
name: {{ $fullName }}-data
spec:
accessModes:
- ReadWriteOnce
{{- if .Values.persistence.storageClass }}
{{- if (eq "-" .Values.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.size }}
{{ end }}