Interview Prep/GitOps & Argo CD/Sync Behaviour, Waves & Hooks

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 →

  1. Kustomize: use configMapGenerator, which appends a content hash to the name and updates references, so pods roll.
  2. Helm: add checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} to the pod template annotations.
  3. 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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Sync Behaviour, Waves & Hooks