Костыль с разрешением создания БД

This commit is contained in:
2025-10-23 00:18:11 +03:00
parent 52c0211436
commit 8977be4b80
2 changed files with 5 additions and 0 deletions

View File

@@ -31,6 +31,9 @@ spec:
{{ end }}
bootstrap:
initdb:
postInitSQL:
- ALTER ROLE app WITH CREATEDB;
{{ if .Values.cnpg.recovery.enable }}
recovery:
source: {{ required "Old cluster name required" .Values.cnpg.recovery.oldClusterName }}

View File

@@ -4,6 +4,8 @@ metadata:
name: {{ .Release.Name }}-backend-deployment
labels:
app: {{ .Release.Name }}-backend
annotations:
redeploy-timestamp: "{{ now | unixEpoch }}"
spec:
replicas: 1
selector: