Fix sync wave ordering - dbinit wave 0, deployment wave 1
- dbinit Job: wave 0 (same as MySQL, wait-for-db handles timing) - Deployment: wave 1 (starts after dbinit completes) - Fixes: db init job starting before mysql pod
This commit is contained in:
parent
7384bae7b1
commit
162df60922
@ -5,8 +5,8 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "property-settings-svc-v2-chart.labels" . | nindent 4 }}
|
{{- include "property-settings-svc-v2-chart.labels" . | nindent 4 }}
|
||||||
annotations:
|
annotations:
|
||||||
# ArgoCD sync wave - run after dbinit job (wave -1)
|
# ArgoCD sync wave - run after dbinit job (wave 0)
|
||||||
argocd.argoproj.io/sync-wave: "0"
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
spec:
|
spec:
|
||||||
{{- if not .Values.autoscaling.enabled }}
|
{{- if not .Values.autoscaling.enabled }}
|
||||||
replicas: {{ .Values.replicaCount }}
|
replicas: {{ .Values.replicaCount }}
|
||||||
|
|||||||
@ -7,8 +7,8 @@ metadata:
|
|||||||
{{- include "property-settings-svc-v2-chart.labels" . | nindent 4 }}
|
{{- include "property-settings-svc-v2-chart.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: dbinit
|
app.kubernetes.io/component: dbinit
|
||||||
annotations:
|
annotations:
|
||||||
# ArgoCD sync wave - run before deployment (wave 0)
|
# ArgoCD sync wave - same wave as MySQL (0), wait-for-db handles timing
|
||||||
argocd.argoproj.io/sync-wave: "-1"
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
argocd.argoproj.io/hook: Sync
|
argocd.argoproj.io/hook: Sync
|
||||||
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
|
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
|
||||||
# Helm hooks (for non-ArgoCD deployments)
|
# Helm hooks (for non-ArgoCD deployments)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user