korvus81 / k8s-net-labs

Kubernetes networking labs for KubeCon EU 2020 talk
97 stars 57 forks source link

[bug] master node is not getting ready #2

Open kulmam92 opened 3 years ago

kulmam92 commented 3 years ago

OS: macOS Big Sur 11.6 Docker: 4.1.0 4 vCPU, 6 GB memory

I followed the instruction(docker + footloose) but the master node is not getting ready.

root@node0 ~# kubectl get nodes NAME STATUS ROLES AGE VERSION node0 NotReady master 8m20s v1.17.3+k3s1 node1 Ready 8m9s v1.17.3+k3s1 node2 Ready 8m9s v1.17.3+k3s1

m1009d commented 2 years ago

I have the same problem :(


❯ docker ps
CONTAINER ID   IMAGE                   COMMAND        CREATED          STATUS          PORTS                                     NAMES
0bff2f70eb23   korvus/debian10:0.6.3   "/sbin/init"   12 minutes ago   Up 12 minutes   0.0.0.0:49155->22/tcp, :::49155->22/tcp   footloose-k8s-node2
d9a4f92f6529   korvus/debian10:0.6.3   "/sbin/init"   12 minutes ago   Up 12 minutes   0.0.0.0:49154->22/tcp, :::49154->22/tcp   footloose-k8s-node1
7ea4f56be2d4   korvus/debian10:0.6.3   "/sbin/init"   12 minutes ago   Up 12 minutes   0.0.0.0:49153->22/tcp, :::49153->22/tcp   footloose-k8s-node0

❯ footloose ssh root@node0

root@node0 ~# kubectl get no
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?
root@node0 ~# kubectl get no
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes)
root@node0 ~# kubectl get no
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes)
root@node0 ~# kubectl get no
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes)
root@node0 ~# kubectl get no
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes)
root@node0 ~# kubectl get no
NAME    STATUS     ROLES    AGE   VERSION
node0   NotReady   master   31m   v1.17.3+k3s1
node1   Ready      <none>   30m   v1.17.3+k3s1
node2   Ready      <none>   30m   v1.17.3+k3s1