Skip to content

Commit 029a383

Browse files
committed
🐛 Fix OAuth2-Proxy sync wave to wait for Keycloak secrets
PROBLEM: - OAuth2-Proxy was sync-wave 0 (deploys FIRST) - Keycloak was sync-wave 5 (deploys LATER) - OAuth2-Proxy pods tried to start before secrets existed - Resulted in CreateContainerConfigError + exponential backoff (5-10 min delays) FIX: - Move OAuth2-Proxy to sync-wave 10 - Now deploys AFTER Keycloak (wave 5) is healthy - Secrets are created and reflected before OAuth2-Proxy starts - Eliminates CreateContainerConfigError and backoff delays IMPACT: - CI: Reduces deployment time by ~5-10 minutes - Local: No more manual pod restarts needed - Prevents race condition between secret creation and pod startup
1 parent 696fc70 commit 029a383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

argocd/applications/base/00-infrastructure/oauth2-proxy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: oauth2-proxy
55
namespace: argocd
66
annotations:
7-
argocd.argoproj.io/sync-wave: "0"
7+
argocd.argoproj.io/sync-wave: "10" # Deploy AFTER Keycloak (wave 5) + secrets extraction + reflection
88
labels:
99
kagenti.dev/layer: infrastructure
1010
kagenti.dev/component: oauth2-proxy

0 commit comments

Comments
 (0)