<p>Given a scenario where I have two Kubernetes clusters, one hosted on AWS EKS and the other on another cloud provider, I would like to manage the EKS cluster from the other cloud provider. What's the easiest way to authenticate such that I can do this?</p>

<p>Would it be reasonable to generate a kubeconfig, where I embed the result from <code>aws get-token</code> (or something like that) to the cluster on the other cloud provider? Or are these tokens not persistent?</p>

<p>Any help or guidance would be appreciated!</p>

Jay K.
<p>I believe the most correct  is the way described in <a href="https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html" rel="noreferrer">Create a kubeconfig for Amazon EKS</a></p>

<p>yes, you create <code>kubeconfig</code> with <code>aws eks get-token</code> and later add newly created config to KUBECONFIG environment variable , eg</p>

<pre><code>export KUBECONFIG=$KUBECONFIG:~/.kube/config-aws
</code></pre>

<p>or you can add it to <code>.bash_profile</code> for your convenience</p>

<pre><code>echo 'export KUBECONFIG=$KUBECONFIG:~/.kube/config-aws' &gt;&gt; ~/.bash_profile
</code></pre>

<p>For detailed steps please refer to provided url. </p>
