I have a Kubernetes cluster 1.17, and I want to add some extraArgs
and extraVolumes
(like in https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/control-plane-flags/) in the apiserver. Usually, I update the manifest file /etc/kubernetes/manifests/kube-apiserver.yaml
to apply my new config, then I update the kubeadm-config
ConfigMap to keep this new configuration for the next Kubernetes upgrade (because static pod manifests are re-generated from this ConfigMap when upgrading).
Is it possible to update only the kubeadm-config
ConfigMap then apply the configuration with a command like kubeadm init phase control-plane apiserver
? What are the risks ?