Skip to content
Discussion options

You must be logged in to vote

When your Deployment manifest omits replicas, Kubernetes defaults to 1 during sync, overriding KEDA's scaled count. Configure ArgoCD to ignore the replicas field:

spec:
  ignoreDifferences:
  - group: apps
    kind: Deployment
    jsonPointers:
      - /spec/replicas
  syncPolicy:
    syncOptions:
      - RespectIgnoreDifferences=true

The RespectIgnoreDifferences=true is critical - it applies the ignore rule during sync, not just diff calculation. This lets KEDA maintain control over replicas during rolling updates.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jacob-braaten
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jacob-braaten
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants