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

32 lines
721 B
YAML
Raw 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 }}
{{ 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 }}
{{ end }}