<p>Is there any command in <code>kubectl</code> to get the data centre details,something like</p>

<pre><code>kubectl get dc
</code></pre>

ambikanair
<p>It is not very clear what is 'datacenter' in your context. If you are referring to a cluster, then <code>kubectl cluster-info</code> or <code>kubectl get nodes</code> may be what you are looking for.</p>

<p>If 'datacenter' is 'all clusters that this kubectl is configured to access', then maybe <code>kubectl config get-contexts</code> or <code>kubectl config get-clusters</code> is what you are looking for. (a 'context' contains everything needed to address a single cluster: the cluster name, the access credentials and the default namespace).</p>
