<p>I have setup a cluster on AWS using kops. I want to connect to the cluster from my local machine.</p>
<p>I have to do <code>cat ~/.kube/config</code>, copy the content and replace it with my local kube config to access to the cluster.</p>
<p>The problem is that it expires after certain amount of time. Is there a way to get permanent access to the cluster?</p>

confusedWarrior
<p>Not sure if you can get permanent access to the cluster, but based on official <code>kOps</code> <a href="https://kops.sigs.k8s.io/cli/kops_update_cluster/" rel="nofollow noreferrer">documentation</a> you can just run <code>kops update cluster</code> command with <code>--admin={duration}</code> flag and set expire time to a very big value.</p>
<p>For example - let set it for almost 10 years:</p>
<pre><code>kops update cluster {your-cluster-name} --admin=87599h --yes
</code></pre>
<p>Then just copy as usual your config file to the client.</p>
<p>Based on official <a href="https://github.com/kubernetes/kops/blob/master/docs/releases/1.19-NOTES.md" rel="nofollow noreferrer">release notes</a>, to back to the previous behaviour just use value <code>87600h</code>.</p>
