Home > Software design >  How to find if a node is master or worker in k8s?
How to find if a node is master or worker in k8s?

Time:09-24

In K8s, every cluster has a set of nodes, some are master and others are worker nodes. How can we know if a node master or worker?

CodePudding user response:

You can use kubectl get nodes to list all nodes. Given by the roles control-plane or master you can identify the node. master will be replaced with control-plane in future releases.

By default all other nodes without a role should be the worker nodes.

Also if you need a bit more information about your nodes you can call kubectl get nodes -o wide.

CodePudding user response:

The node which api-server, kube-controller-management and kube-scheduler running on is the master node.

  • Related