Hi you all,
my problem is really puzzling.
I already followed the same procedure thrice and had the same identical issue: installed debian netinstall vms on kvm, configured, set up and launched the cluster configuration, correctly joined the nodes to the controller node, but after 4-5 minutes the cluster crashes.
please find below the cli’s output, considering that everything happened in less than 5mins.
root@master:~# kubectl get nodes
NAME STATUS ROLES AGE VERSION
master Ready control-plane 14h v1.26.1
root@master:~# kubeadm token create --print-join-command
kubeadm join 192.168.122.13:6443 --token gcgjwr.ch8ch4huj73yjce0 --discovery-token-ca-cert-hash sha256:1eb4274255ab2d679c86e9c06c7dbb2eed70d06b8133eec21a1d778723632204
launched the commands on the worker nodes
root@master:~# kubectl get nodes
NAME STATUS ROLES AGE VERSION
master Ready control-plane 8m18s v1.26.1
worker1 Ready 4m34s v1.26.1
worker2 Ready 4m31s v1.26.1
root@master:~# kubectl get pods
Get “https://192.168.122.126:6443/api/v1/namespaces/default/pods?limit=500”: dial tcp 192.168.122.126:6443: connect: connection refused - error from a previous attempt: http2: server sent GOAWAY and closed the connection; LastStreamID=1, ErrCode=NO_ERROR, debug=“”
root@master:~# kubectl get nodes
NAME STATUS ROLES AGE VERSION
master Ready control-plane 9m21s v1.26.1
worker1 Ready 5m37s v1.26.1
worker2 Ready 5m34s v1.26.1
root@master:~# kubectl get pods --all-namespaces
The connection to the server 192.168.122.126:6443 was refused - did you specify the right host or port?
root@master:~# kubectl get nodes
The connection to the server 192.168.122.126:6443 was refused - did you specify the right host or port?
root@master:~#
Does anyone any idea?
Cluster information:
Kubernetes version: Kubernetes v1.26.1
Cloud being used: debian cluster on kvm vms
Installation method: kubeadm
Host OS: debian 11
CNI and version: 0.3.1
CRI and version: 1.6.16