<p>I use <code>.kube/config</code> to access Kubernetes api on a server. I am wondering does the token in config file ever get expired? How to prevent it from expire?</p>

cometta
<p>This is OAuth provider specific. For example GKE uses <a href="https://cloud.google.com/endpoints/docs/openapi/authentication-method#google_id_token_authentication" rel="nofollow noreferrer">this</a>.</p>

<p>So in short, auth provider issues you a JWT token a proof you are auth, which contains a data like expiration time, according to documentation it cannot be more than 60 min in case of google accounts.</p>

<p>I hope it helps.</p>
