Kubernetes ships with a
coredns that lets you specify DNS settings. I want to modify or patch a small piece of this configuration by adding:
apiVersion: v1 kind: ConfigMap data: upstreamNameservers: | ["18.104.22.168", "22.214.171.124"]
I know I can use
kubectrl edit to edit the
ConfigMap is there some way I can take the above file containing only the settings I want to insert or update and have it merged on top of or patched over the existing
The reason for this is that I want my deployment to be repeatable using CI/CD. So, even if I ran my Helm chart on a brand new Kubernetes cluster, the settings above would be applied.