You need ConfigMap changes to restart pods automatically in an Argo CD-managed app. How?
IntermediateScenarioSync Behaviour, Waves & Hooks
Answer
Situation read → Kubernetes does not restart pods when a referenced ConfigMap changes.
What I'd do →
- Kustomize: use
configMapGenerator, which appends a content hash to the name and updates references, so pods roll. - Helm: add
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}to the pod template annotations. - For values that change outside Git (ESO), use Stakater Reloader.
Why → A pod template change triggers a rolling update; Argo CD then shows it like any deploy.
Interview tip → Note that Kustomize hashed ConfigMaps leave old ones behind until pruned.
More on Sync Behaviour, Waves & Hooks
A new release needs a database migration that must finish before the new pods start. How do you implement it in Argo CD?IntermediateYour app needs cert-manager's CRDs, an Issuer and then a Certificate, all in one Application. The first sync fails. What do you do?IntermediateAfter enabling `prune: true`, someone renames a folder and the next sync would delete a production StatefulSet and its PVCs. How do you prevent this class of incident?AdvancedYou want a smoke test to run after every deploy and mark the sync failed if it fails. How?BeginnerAn HPA scales your Deployment, but Argo CD with self-heal keeps resetting replicas to 2. What do you do?BeginnerYou must change a Deployment's label selector, which is immutable. How do you roll it out with Argo CD?Advanced