infra4talos/apps-helm/ntfy/templates/pvc.yaml

34 lines
851 B
YAML
Raw Permalink Normal View History

{{- if .Values.persistence.cache.enabled -}}
{{- $fullName := include "ntfy.fullname" . -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
labels:
{{- include "ntfy.labels" . | nindent 4 }}
name: {{ $fullName }}-cache
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.persistence.cache.size }}
storageClassName: {{ .Values.persistence.cache.storageClass }}
{{ end }}
---
{{- if .Values.persistence.data.enabled -}}
{{- $fullName := include "ntfy.fullname" . -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
labels:
{{- include "ntfy.labels" . | nindent 4 }}
name: {{ $fullName }}-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.persistence.data.size }}
storageClassName: {{ .Values.persistence.cache.storageClass }}
{{ end }}