<p>I am looking for a way <strong><em>(Kubernetes API/Command)</em></strong> that returns a list of worker nodes associated to the same master node. I have been digging clues on Google for days but to no avail.</p>

<p>I have tried to look into details of every worker node using <strong>"kubectl describe nodes"</strong> but none of the options indicate any relationship between the worker node and master node.</p>

<p>I expect something like a list of Worker Node A, Worker Node B and Worker Node C returns when I input the common master node.</p>

JH G
<p>In scenario with more than one master, the Kubernetes make leader selection so the other masters stays inactive.</p>

<p>You can use endpoints to check who the master is.</p>
