cookeem / kubeadm-ha

通过kubeadm安装kubernetes高可用集群,使用docker/containerd容器运行时,适用v1.24.x以上版本
MIT License
678 stars 275 forks source link

Update check_apiserver.sh #63

Closed ASaiun closed 5 years ago

ASaiun commented 5 years ago

fix the bug:

ASaiun commented 5 years ago

maybe you need to change the name check_apiserver.sh to check_nginx.sh

cookeem commented 5 years ago

keepalived just to check apiserver in localhost still work or not, it should watch apiserver port 6443, not nginx port 16443. Actually you said that watch nginx port would works either.

ASaiun commented 5 years ago

suppose the nginx01 is down in the master01 server, and the keepalive01 to check the aipservice is ok.so the keepalived will not change the vip to another master server. but we can not use the k8s cluster by the vip , beacuse the address vip:16443 will access to the down nginx01. so I think the script should check the nginx port.

cookeem commented 5 years ago

But you know nginx is managed by kubernetes, if apiserver down nginx will down too, no matter check nginx or apiserver port, it will cause the same result.