Skip to content

Examine cluster state

Check cluster nodes

Even though we don't have a container networking interface (CNI) installed yet, we can still look at a few things related to our new cluster.

Verify all of our nodes are in the cluster, and happy.

kubectl get nodes
NAME   STATUS   ROLES           AGE     VERSION
cn1    Ready    control-plane   8m53s   v1.29.2+k0s
cn2    Ready    control-plane   8m42s   v1.29.2+k0s
cn3    Ready    control-plane   8m32s   v1.29.2+k0s

Great, we have the three hosts we defined in k0sctl.yaml and they all are ready to go.

Check system pods

Verify that the needed system pods have been created:

kubectl -n kube-system get pods
NAME                              READY   STATUS              RESTARTS   AGE
coredns-555d98c87b-5z8vv          0/1     ContainerCreating   0          7m42s
coredns-555d98c87b-lwmt6          0/1     ContainerCreating   0          7m42s
coredns-6cd46fb86c-xqr92          0/1     ContainerCreating   0          8m8s
metrics-server-7556957bb7-6xmkd   0/1     ContainerCreating   0          8m8s

Great! This means the necessary system level pods are created and it's all working. Except they seem stuck. No fear, this is because we haven't got networking for them. See the next section.

See the asciicast below: