diff --git a/manifests/stateful-backups.yaml b/manifests/stateful-backups.yaml index 4a936a8..c5f41c7 100644 --- a/manifests/stateful-backups.yaml +++ b/manifests/stateful-backups.yaml @@ -74,11 +74,11 @@ spec: command: - /bin/bash - -c - - psql -U postgres -c 'CHECKPOINT;' + - PGPASSWORD=spVTpND34K psql -U postgres -c 'CHECKPOINT;' timeout: 2m onError: Continue - # Authentik PostgreSQL: checkpoint before backup + # Authentik PostgreSQL: checkpoint before backup - name: authentik-postgres-checkpoint includedNamespaces: - authentik @@ -92,6 +92,23 @@ spec: command: - /bin/bash - -c - - psql -U postgres -c 'CHECKPOINT;' + - PGPASSWORD=th1rt33nletterS. psql -U authentik -c 'CHECKPOINT;' + timeout: 2m + onError: Continue + + # n8n PostgreSQL: checkpoint before backup + - name: n8n-postgres-checkpoint + includedNamespaces: + - n8n + labelSelector: + matchLabels: + app.kubernetes.io/service: postgres-n8n + pre: + - exec: + container: postgres + command: + - /bin/bash + - -c + - psql -d n8n -U root -c 'CHECKPOINT;' timeout: 2m onError: Continue