updated hooks

This commit is contained in:
2025-12-31 18:06:23 +11:00
parent 923ecd4cee
commit e35b83caa7

View File

@@ -74,11 +74,11 @@ spec:
command: command:
- /bin/bash - /bin/bash
- -c - -c
- psql -U postgres -c 'CHECKPOINT;' - PGPASSWORD=spVTpND34K psql -U postgres -c 'CHECKPOINT;'
timeout: 2m timeout: 2m
onError: Continue onError: Continue
# Authentik PostgreSQL: checkpoint before backup # Authentik PostgreSQL: checkpoint before backup
- name: authentik-postgres-checkpoint - name: authentik-postgres-checkpoint
includedNamespaces: includedNamespaces:
- authentik - authentik
@@ -92,6 +92,23 @@ spec:
command: command:
- /bin/bash - /bin/bash
- -c - -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 timeout: 2m
onError: Continue onError: Continue