fix: add CreateOnly sync option to n8n-secret to prevent ArgoCD from overwriting encryption key
This commit is contained in:
@@ -4,9 +4,10 @@ metadata:
|
|||||||
name: n8n-secret
|
name: n8n-secret
|
||||||
namespace: n8n
|
namespace: n8n
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-options: "Prune=false"
|
# CreateOnly: ArgoCD creates this secret if it doesn't exist but never overwrites it.
|
||||||
# data managed manually — do NOT store the real value here
|
# Populate the key manually before first deploy:
|
||||||
# create/update with: kubectl create secret generic n8n-secret \
|
# kubectl create secret generic n8n-secret \
|
||||||
# --from-literal=encryption-key='<value-from-vaultwarden>' \
|
# --from-literal=encryption-key='<value-from-vaultwarden>' \
|
||||||
# -n n8n --dry-run=client -o yaml | kubectl apply -f -
|
# -n n8n --dry-run=client -o yaml | kubectl apply -f -
|
||||||
|
argocd.argoproj.io/sync-options: "CreateOnly=true"
|
||||||
type: Opaque
|
type: Opaque
|
||||||
|
|||||||
Reference in New Issue
Block a user