mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-05 19:43:40 +00:00
As discussed yesterday, a simplified version of [my helm](https://github.com/S7evinK/dendrite-helm) which deploys a monolith with internal NATS and an optionally enabled PostgreSQL server. If the PostgreSQL dependency is not enabled, a user specified connection string is constructed. Co-authored-by: kegsay <kegan@matrix.org>
48 lines
No EOL
1.2 KiB
YAML
48 lines
No EOL
1.2 KiB
YAML
{{ if not .Values.persistence.media.existingClaim }}
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
name: {{ include "dendrite.fullname" . }}-media-pvc
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.media.capacity }}
|
|
storageClassName: {{ .Values.persistence.storageClass }}
|
|
{{ end }}
|
|
{{ if not .Values.persistence.jetstream.existingClaim }}
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
name: {{ include "dendrite.fullname" . }}-jetstream-pvc
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.jetstream.capacity }}
|
|
storageClassName: {{ .Values.persistence.storageClass }}
|
|
{{ end }}
|
|
{{ if not .Values.persistence.search.existingClaim }}
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
name: {{ include "dendrite.fullname" . }}-search-pvc
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.search.capacity }}
|
|
storageClassName: {{ .Values.persistence.storageClass }}
|
|
{{ end }} |