<p>How can we use inclusterconfig for multiple clusters? </p>

<p>I tried below code for one cluster</p>

<pre><code>rest.InclusterConfig
</code></pre>

<p>Can someone help me with this?</p>

Pattapu S Vamsi
<p>It's not possible to use in cluster config to connect to a cluster which is not the current cluster where the pod is deployed because client-go uses the service account token (valid for the current cluster) mounted inside the pod at the <code>/var/run/secrets/kubernetes.io/serviceaccount</code> path when the <code>rest.InClusterConfig()</code> is used.</p>
