<p>I created a context in Kubernetes with:  </p>

<pre><code>kubectl config set-context --token="&lt;JWY_token&gt;" myservice-context
</code></pre>

<p>When I run:  </p>

<pre><code>kubectl config get-contexts 
</code></pre>

<p>I see all the contexts:   </p>

<pre><code>CURRENT   NAME                                                      CLUSTER                                     AUTHINFO                                           NAMESPACE
*         minikube                                                  minikube                                    minikube                                           
          myservice-context       
</code></pre>

<p>I want to see more details about <code>myservice-context</code>. For example, I want to see the token I just pass it while creating it.<br>
I tried to run <code>get-context</code> with the name of my service but it doesn't provide the full details:  </p>

<pre><code>$ kubectl config get-contexts myservice-context
CURRENT   NAME                 CLUSTER   AUTHINFO   NAMESPACE
          myservice-context                        
</code></pre>

<p>How can I see the <strong>full</strong> details of the context (such as the token) ?    </p>

E235
<p><code>kubectl config view</code> will show you, though it hides some fields (like the very long embedded TLS certificates).</p>

<p>If that's not enough information, by default the data is stored in a single YAML file, on Linux/MacOS in <code>~/.kube/config</code>, and you can open that up in a text editor.</p>
