Closed ASaiun closed 5 years ago
maybe you need to change the name check_apiserver.sh to check_nginx.sh
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.
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.
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.
fix the bug: