updated hooks
This commit is contained in:
@@ -74,7 +74,7 @@ spec:
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- psql -U postgres -c 'CHECKPOINT;'
|
||||
- PGPASSWORD=spVTpND34K psql -U postgres -c 'CHECKPOINT;'
|
||||
timeout: 2m
|
||||
onError: Continue
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user