Dear Team,
I found the below error when I initiated the kubeadm.
Secondly, my docker is running state and I have never configured the slave node right now, I am only working master node.
Command:
"
kubeadm init --pod-network-cidr=10.244.0.0/16
"
[root@master-node ~]# kubeadm init --pod-network-cidr=10.244.0.0/16
[init] Using Kubernetes version: v1.26.1
[preflight] Running pre-flight checks
[WARNING Hostname]: hostname "master-node" could not be reached
[WARNING Hostname]: hostname "master-node": lookup master-node on 1.1.1.1:53: no such host
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is not running: output: time="2023-01-19T11:45:16+05:00" level=fatal msg="unable to determine runtime API version: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory\""
, error: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
[root@master-node ~]# kubectl get nodes
W0119 11:45:29.494783 18376 loader.go:222] Config not found: /etc/kubernetes/admin.conf
E0119 11:45:29.497282 18376 memcache.go:238] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0119 11:45:29.497927 18376 memcache.go:238] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0119 11:45:29.499606 18376 memcache.go:238] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0119 11:45:29.501525 18376 memcache.go:238] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0119 11:45:29.502317 18376 memcache.go:238] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
The connection to the server localhost:8080 was refused - did you specify the right host or port?
"
#Implementation------------------------------
Arsalan Nafees
Individual Only Contact Account
------------------------------