Files
keyhan 695e05f948 Add managed databases and services with billing-aligned upgrades.
Introduce product types for managed PostgreSQL, Redis, and RabbitMQ with a dedicated dashboard, Helm-only deploy pipeline, external access, snapshots with progress, and prorated resource or storage upgrades matching application billing rules. PVCs use an expandable StorageClass with automatic migration when legacy disks cannot resize in place.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-23 19:00:09 +03:30

24 lines
642 B
YAML

{{- if .Values.database.enabled }}
{{- $ns := include "cloudhost-app.namespace" . -}}
{{- $dbName := include "cloudhost-app.dbDeploymentName" . -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ $dbName }}
namespace: {{ $ns }}
labels:
app: {{ $dbName }}
{{- include "cloudhost-app.labels" . | nindent 4 }}
annotations:
"helm.sh/resource-policy": keep
spec:
accessModes:
- ReadWriteOnce
{{- if .Values.global.storageClass }}
storageClassName: {{ .Values.global.storageClass | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.database.storageSize | quote }}
{{- end }}