There is a question while doing the LAB : How many nodes are part of the cluster?
When I type the command kubectl get nodes it gives me a output as below but I am not clear how many nodes are a part of the cluster. Please clarify
controlplane ~ ➜ kubectl get nodes
NAME STATUS ROLES AGE VERSION
controlplane Ready control-plane,master 9m2s v1.29.0+k3s1
This is what indicates that it’s a Rancher K3s version of kubernetes (as opposed to e.g. kubeadm).
Simplify the fact that only one result is listed for kubectl get nodes indicates that it is a one-node cluster and that node is controlplane as well as worker.