I have an updated app to deploy to Kubernetes with a new image and modified config in a ConfigMap. The config might be an updated value, something removed or a completely new configuration key.
My question is, how should I isolate changes to the new version only and not apply config to any existing version?
I've read about immutable config maps, which suggests to me creating a new ConfigMap with each deploy, or with each config change, is a possible option. I'm unsure if they're intended to be used in this way. Or how best to remove the previous one safely once nothing else is using it.
Also, how do I guarantee the config is available before rolling update of the pods begins?