Argo CD shows the `payments` app permanently `OutOfSync` and self-heal keeps fighting: replicas jump between 3 and 12 every few minutes.

IntermediateTroubleshootingPipeline outages
Answer

Likely causes → Two controllers own the same field. The manifest in Git sets replicas: 3, the HPA scales to 12, and Argo CD's self-heal resets it to 3, which the HPA undoes again. The same pattern happens with mutating webhooks or operators that add fields.

Diagnose →

argocd app diff payments
kubectl get hpa -n payments
argocd app get payments -o json | jq '.status.resources[] | select(.status=="OutOfSync")'

Fix → Remove replicas from the Deployment manifest when an HPA manages it, or tell Argo CD to ignore the field:

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

Prevent → A rule in chart reviews: if an HPA exists, the template doesn't render replicas.

All Real-World Interview questions Roadmap: Interview readiness

More on Pipeline outages