<p>configuration is stored in ~/.kube/config. But when i use the below command it gives empty results.
 <code>kubectl config view</code></p>

<p>Output:</p>

<pre><code>apiVersion: v1
clusters: []
contexts: []
current-context: ""
kind: Config
preferences: {}
users: []
</code></pre>

Abhishek Parmar
<ul>
<li>Just to make sure, try running <code>kubectl config view --kubeconfig &lt;PATH_TO_YOUR_CONFIG_FILE&gt;</code>.</li>
<li>Make sure your <code>$KUBECONFIG</code> is empty, (or that it points at <code>~/.kube/config</code>).</li>
<li>If you installed <code>kubectl</code> via <code>snap</code> it might possibly be a sand-boxing issue.</li>
</ul>
