k8s-高可用配置

多master-nginx-keepalived配置完成后。需要修改node连接apiserver地址

1、在每一台node节点中修改

[ cfg]# pwd
/opt/kubernetes/cfg

#修改一下配置文件地址我的虚拟vip192.168.56.17
bootstrap.kubeconfig:    server: https://192.168.56.11:6443
kubelet.kubeconfig:    server: https://192.168.56.11:6443
kube-proxy.kubeconfig:    server: https://192.168.56.11:6443

#修改完成后重启kubelet
systemctl restart kubelet

修改bootstrap.kubeconfig、kube-proxy.kubeconfig地址kubelet.kubeconfig、

到这里高可用k8s部署完成

相关推荐