我这边貌似网络有问题,,zk没有选举出来...
[root@k8s-master zzz]# kubectl get service --namespace zk-ns
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
zk-0 LoadBalancer 10.97.218.96 <pending> 2181:32535/TCP,3888:32280/TCP 5m9s
zk-1 LoadBalancer 10.105.30.142 <pending> 2181:32388/TCP,3888:31646/TCP 5m9s
zk-2 LoadBalancer 10.99.216.163 <pending> 2181:31863/TCP,3888:32206/TCP 5m9s
[root@k8s-master zzz]# telnet 10.97.218.96 2181
Trying 10.97.218.96...
Connected to 10.97.218.96.
Escape character is '^]'.
stat
This ZooKeeper instance is not currently serving requests
Connection closed by foreign host.
使用 k8s/docker-compose 部署 zookeeper集群Running Replicated ZooKeeper http://zookeeper.apache.org/doc/current/zookeeperStarted.h...