kubernetes master 节点扩容

@Jestin  June 24, 2022

kubernetes master 节点扩容


导出kubeadm配置
kubectl -n kube-system get configmap kubeadm-config -o jsonpath='{.data.ClusterConfiguration}' > kubeadm-init.yaml

要有controlPaneEndpoint字段
kubectl edit cm -n kube-system kubeadm-config
clusterName: kubernetes
controlPlaneEndpoint: xx.xx.xx.xx:6443

更新api证书
kubeadm init phase certs apiserver --config kubeadm-init.yaml

生成key(外置etcd)
kubeadm init phase upload-certs --upload-certs --config kubeadm-init.yaml



添加新评论