Interview Prep/Kubernetes/Configuration, Secrets and storage

You want immutable ConfigMaps and Secrets. Why and how?

IntermediateScenarioConfiguration, Secrets and storage
Answer

Situation read → Accidental config edits keep causing incidents and kubelet watch load is high.

What I'd do →

  1. Set immutable: true on the ConfigMap or Secret
  2. Version names like app-config-v7 and update the Deployment reference
  3. Roll out and roll back through Deployment revisions
  4. Helm and Kustomize configMapGenerator add hashes automatically
  5. Delete old versions later

Why → Immutability prevents accidental change and reduces API server watches.

Interview tip → Mention Kustomize hash suffix as the easy route.

All Kubernetes questions Roadmap: Kubernetes core

More on Configuration, Secrets and storage