23 lines
574 B
YAML
23 lines
574 B
YAML
|
{{- 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 }}
|