<p>I want to check the Kubernetes configuration - how many nodes, etc. I tried the following command.</p>
<pre><code>kubectl describe cluster
error: the server doesn't have a resource type &quot;cluster&quot;
</code></pre>
<p>BTW, I tried to use the following command to check the AZ of the nodes of the pods. But it returns <code>&lt;none&gt;</code> for all the pods' nodes.</p>
<pre><code>kubectl get pods -o=custom-columns=NAME:.metadata.name,ZONE:.metadata.labels.'topology\.Kubernetes\.io/zone'
</code></pre>
<p>How to use <code>kubectl</code> to find the AZs of the pods?</p>

ca9163d9
<p>I could be missing the point of your question, but if you just need the nodes, you could do</p>
<p><code>kubectl get nodes</code></p>
<p>and then</p>
<p><code>kubectl describe node {node-name}</code></p>
<p>to get further details of an individual node</p>
<p>You could also combine the output from <code>kubectl get nodes</code> and either use <code>jsonpath</code> or <code>jq</code> to filter the information you need.</p>
