Kubernetes Cluster: How to figure out which nodes are master nodes

8/3/2020

When I use the command kubectl get nodes. I got list of nodes with ROLES <none>. Are there any way I can find out which nodes are masters?

-- Melissa Jenner
kubernetes

2 Answers

8/3/2020

Use this command for this purpose.

kubectl get node --selector='node-role.kubernetes.io/master'
-- O.Man
Source: StackOverflow

8/3/2020

In EKS, according to the AWS Documentation:

The control plane runs in an account managed by AWS, and the Kubernetes API is exposed via the Amazon EKS endpoint associated with your cluster.

As mentioned in my comment above, you don't have access to the master node in an EKS cluster, as it is managed by AWS.

The idea behind it is to "make your life easier" and make you worry only about the loads that will run on the worker nodes.

There is also this documentation page, that may help in the understanding of EKS.

-- Juliano Costa
Source: StackOverflow