# "kubectl get nodes" only returning worker nodes

**URL:** <https://discuss.kubernetes.io/t/kubectl-get-nodes-only-returning-worker-nodes/21325>\
**Category:** General Discussions\
**Created:** [September 16, 2022, 11:20pm UTC](https://discuss.kubernetes.io/t/kubectl-get-nodes-only-returning-worker-nodes/21325 "2022-09-16T23:20:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajmothra](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@ajmothra](https://discuss.kubernetes.io/u/ajmothra)\
**Post date:** [September 16, 2022, 11:20pm UTC](https://discuss.kubernetes.io/t/kubectl-get-nodes-only-returning-worker-nodes/21325/1 "2022-09-16T23:20:45Z")

</div>

### Cluster information:

Kubernetes version: 1.23.4  
Cloud being used: (put bare-metal if not on a public cloud)  
Installation method: TKG-I (Ops Manager)  
Host OS: Ubuntu

When I run “kubectl get nodes”, I only get the worker nodes.  
$ kubectl get nodes  
NAME STATUS ROLES AGE VERSION  
26497eb6-672c-45af-bd07-2eb56a80ff69 Ready 66m v1.23.4+vmware.1  
26de5921-bf3e-49c3-94ce-84f1f69d36f0 Ready 70m v1.23.4+vmware.1  
41403428-d790-4b1a-a290-6662154d1d2b Ready 66m v1.23.4+vmware.1

Is there a way I can have the master node show up on the list?

Thanks,  
AJ

---

<div class="post-metadata">

**Author:** ![thockin](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/thockin/32/2457_2.png) [@thockin](https://discuss.kubernetes.io/u/thockin)\
**Post date:** [September 17, 2022, 10:37pm UTC](https://discuss.kubernetes.io/t/kubectl-get-nodes-only-returning-worker-nodes/21325/2 "2022-09-17T22:37:16Z")

</div>

Someone has to register those machines as Nodes.

---

<div class="post-metadata">

**Author:** ![ajmothra](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@ajmothra](https://discuss.kubernetes.io/u/ajmothra)\
**Post date:** [September 19, 2022, 11:44pm UTC](https://discuss.kubernetes.io/t/kubectl-get-nodes-only-returning-worker-nodes/21325/3 "2022-09-19T23:44:23Z")

</div>

Please advise on how I would register the master node.  
I had assumed that when I did a cluster create using tkgi create cluster that all nodes including master node would be registered.

---

<div class="post-metadata">

**Author:** ![thockin](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/thockin/32/2457_2.png) [@thockin](https://discuss.kubernetes.io/u/thockin)\
**Post date:** [September 20, 2022, 12:24am UTC](https://discuss.kubernetes.io/t/kubectl-get-nodes-only-returning-worker-nodes/21325/4 "2022-09-20T00:24:39Z")

</div>

Control-plane machines MAY be nodes but are not NECESSARILY nodes. That’s up to the installer.
