My cluster is behind a corporate proxy, and I have manually set http_proxy=myproxy
, https_proxy=myproxy
and no_proxy=10.96.0.0/16,10.244.0.0/16,<nodes-ip-range>
in the three kubernetes core manifests (kube-apiserver.yaml, kube-controller-manager.yaml and kube-scheduler.yaml). Now, I want to upgrade kubernetes with kubeadm. But I know kubeadm will regenerate these manifests from the kubeadm-config configmap when upgrading, so without these environment variables. I can't find an extraEnvs
key in kubeadm-config configmap (like extraArgs
and extraVolumes
).
Do I really need to set these variables in all kubernetes manifests ? If not, I think kubeadm will throw a warning because all communications will use the proxy (and I don't want that).
How can I pass these variables to kubeadm when upgrading ?