Automation · GitOps
GitOps Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=5492
Answer
Troubleshoot GitOps by checking the controller's sync status and events, the rendered manifests, repository access, Helm or Kustomize errors, and resources changed outside Git.
Remember
- Check controller status and events first.
- Render errors come from Helm or Kustomize.
- Repository access problems stop sync.
First checks
argocd app get <app> --show-operation— sync errorsflux logs --level=error— Flux errorskubectl describe <resource>— resource events
Commands
git status --short --branch- Read-only/validation observation for current branch, working-tree changes and divergence indicators.
Verify in this order
git → fetch → render → apply → health
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5492