How to patch a ConfigMap in Kubernetes
This will apply the same patch to that single field: kubectl patch configmap/coredns \ -n kube-system \ –type merge \ -p ‘{“data”:{“upstreamNameservers”:”[\”1.1.1.1\”, \”1.0.0.1\”]”}}’
This will apply the same patch to that single field: kubectl patch configmap/coredns \ -n kube-system \ –type merge \ -p ‘{“data”:{“upstreamNameservers”:”[\”1.1.1.1\”, \”1.0.0.1\”]”}}’