Hi, I'm following the linkedin course & I'm getting several problems running this StatefulSet:
๐ minikube v1.17.1 on Ubuntu 20.04
โจ Using the docker driver based on existing profile
๐ Starting control plane node minikube in cluster minikube
๐ Restarting existing docker container for "minikube" ...
๐ณ Preparing Kubernetes v1.20.2 on Docker 20.10.2 ...
๐ Verifying Kubernetes components...
๐ Enabled addons: storage-provisioner, metrics-server, default-storageclass, dashboard
๐ Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
securityContext:
runAsUser: 0
fsGroup: 0
2021-02-09 14:57:18,031 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58436
2021-02-09 14:57:18,032 [myid:1] - INFO [Thread-11:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58436 (no session established for client)
2021-02-09 14:57:22,562 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58468
2021-02-09 14:57:22,562 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58468
2021-02-09 14:57:22,564 [myid:1] - INFO [Thread-12:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58468 (no session established for client)
2021-02-09 14:57:28,057 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58510
2021-02-09 14:57:28,058 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58510
2021-02-09 14:57:28,060 [myid:1] - INFO [Thread-13:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58510 (no session established for client)
2021-02-09 14:57:32,563 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58548
2021-02-09 14:57:32,564 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58548
2021-02-09 14:57:32,566 [myid:1] - INFO [Thread-14:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58548 (no session established for client)
2021-02-09 14:57:38,013 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58590
2021-02-09 14:57:38,013 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58590
2021-02-09 14:57:38,014 [myid:1] - INFO [Thread-15:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58590 (no session established for client)
2021-02-09 14:57:42,535 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58626
2021-02-09 14:57:42,536 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58626
2021-02-09 14:57:42,538 [myid:1] - INFO [Thread-16:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58626 (no session established for client)
2021-02-09 14:57:48,000 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58666
2021-02-09 14:57:48,001 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58666
2021-02-09 14:57:48,001 [myid:1] - INFO [Thread-17:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58666 (no session established for client)
2021-02-09 14:57:52,525 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58700
2021-02-09 14:57:52,526 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58700
2021-02-09 14:57:52,526 [myid:1] - INFO [Thread-18:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58700 (no session established for client)
2021-02-09 14:57:58,060 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58742
2021-02-09 14:57:58,061 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58742
2021-02-09 14:57:58,063 [myid:1] - INFO [Thread-19:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58742 (no session established for client)
2021-02-09 14:57:59,968 [myid:1] - WARN [QuorumPeer[myid=1]/0.0.0.0:2181:QuorumCnxManager@588] - Cannot open channel to 2 at election address zk-1.zk-hs.default.svc.cluster.local:3888
java.net.UnknownHostException: zk-1.zk-hs.default.svc.cluster.local
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:562)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:614)
at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:843)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:913)
2021-02-09 14:57:59,971 [myid:1] - WARN [QuorumPeer[myid=1]/0.0.0.0:2181:QuorumPeer$QuorumServer@173] - Failed to resolve address: zk-1.zk-hs.default.svc.cluster.local
java.net.UnknownHostException: zk-1.zk-hs.default.svc.cluster.local: Name or service not known
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at java.net.InetAddress.getByName(InetAddress.java:1076)
at org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer.recreateSocketAddresses(QuorumPeer.java:166)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:595)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:614)
at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:843)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:913)
2021-02-09 14:57:59,972 [myid:1] - WARN [QuorumPeer[myid=1]/0.0.0.0:2181:QuorumCnxManager@588] - Cannot open channel to 3 at election address zk-2.zk-hs.default.svc.cluster.local:3888
java.net.UnknownHostException: zk-2.zk-hs.default.svc.cluster.local
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:562)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:614)
at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:843)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:913)
2021-02-09 14:57:59,975 [myid:1] - WARN [QuorumPeer[myid=1]/0.0.0.0:2181:QuorumPeer$QuorumServer@173] - Failed to resolve address: zk-2.zk-hs.default.svc.cluster.local
java.net.UnknownHostException: zk-2.zk-hs.default.svc.cluster.local: Name or service not known
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at java.net.InetAddress.getByName(InetAddress.java:1076)
at org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer.recreateSocketAddresses(QuorumPeer.java:166)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:595)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:614)
at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:843)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:913)
2021-02-09 14:57:59,976 [myid:1] - INFO [QuorumPeer[myid=1]/0.0.0.0:2181:FastLeaderElection@852] - Notification time out: 60000
2021-02-09 14:58:02,551 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58774
2021-02-09 14:58:02,551 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58774
2021-02-09 14:58:02,553 [myid:1] - INFO [Thread-20:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58774 (no session established for client)
2021-02-09 14:58:08,046 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58814
2021-02-09 14:58:08,047 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58814
2021-02-09 14:58:08,048 [myid:1] - INFO [Thread-21:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58814 (no session established for client)
2021-02-09 14:58:12,560 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58846
2021-02-09 14:58:12,561 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58846
2021-02-09 14:58:12,563 [myid:1] - INFO [Thread-22:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58846 (no session established for client)
2021-02-09 14:58:18,026 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58890
2021-02-09 14:58:18,026 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58890
2021-02-09 14:58:18,027 [myid:1] - INFO [Thread-23:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58890 (no session established for client)
2021-02-09 14:58:22,561 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58922
2021-02-09 14:58:22,561 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58922
2021-02-09 14:58:22,563 [myid:1] - INFO [Thread-24:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58922 (no session established for client)
2021-02-09 14:58:28,045 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:58970
2021-02-09 14:58:28,045 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:58970
2021-02-09 14:58:28,047 [myid:1] - INFO [Thread-25:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:58970 (no session established for client)
2021-02-09 14:58:32,559 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:59008
2021-02-09 14:58:32,560 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:59008
2021-02-09 14:58:32,562 [myid:1] - INFO [Thread-26:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:59008 (no session established for client)
2021-02-09 14:58:38,025 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:59048
2021-02-09 14:58:38,026 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:59048
2021-02-09 14:58:38,027 [myid:1] - INFO [Thread-27:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:59048 (no session established for client)
2021-02-09 14:58:42,558 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:59096
2021-02-09 14:58:42,559 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing ruok command from /127.0.0.1:59096
2021-02-09 14:58:42,561 [myid:1] - INFO [Thread-28:NIOServerCnxn@1044] - Closed socket connection for client /127.0.0.1:59096 (no session established for client)
Logs from Feb 9, 2021 to Feb 9, 2021 UTC