cookeem / kubeadm-ha

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

按照1.11.x 安装k8s-ha集群,发现宿主机上无法ping通cluster-ip #52

Open sky-daiji opened 5 years ago

cookeem commented 5 years ago

请检查你的calico是否正常部署

cookeem commented 5 years ago
kubectl get pods -n kube-system -o wide
NAME                                   READY     STATUS    RESTARTS   AGE       IP              NODE
calico-node-nxskr                      2/2       Running   0          46m       192.168.20.22   k8s-master03
calico-node-xv5xt                      2/2       Running   0          46m       192.168.20.20   k8s-master01
calico-node-zsmgp                      2/2       Running   0          46m       192.168.20.21   k8s-master02
coredns-78fcdf6894-kfzc7               1/1       Running   0          1h        172.168.2.3     k8s-master03
coredns-78fcdf6894-t957l               1/1       Running   0          46m       172.168.1.2     k8s-master02
sky-daiji commented 5 years ago

image

cookeem commented 5 years ago

服务正常,你部署一个测试服务上去测测吧,clusterip不一定代表就是允许icmp的。