修改 kubeadm-config configmap
kubectl edit cm -n kube-system kubeadm-config
对应的位置
data
ClusterConfiguration
controlPlaneEndpoint
修改 kube-proxy configmap
kubectl edit cm kube-proxy -n kube-system
对应的位置
data
kubeconfig.conf
clusters
- cluster:
server
修改文件内容
/etc/kubernetes/admin.conf
/etc/kubernetes/kubelet.conf
重启 kubelet
systemctl restart kubelet
标签:kubectl,kube,cm,修改,kubelet,地址,conf,平面,k8s
From: https://www.cnblogs.com/xwjh/p/17141903.html