Kubernetes-client docs / token auto refresh #4618
Unanswered
kobaltoxid
asked this question in
Q&A
Replies: 1 comment
-
You can take a look to the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am writing to you since I am interested in implementing the new feature available as of version 6.1.0 which would be the automatic token refresh for AWS clusters. I have tried checking your docs if you have an example or some information on the topic, but I can't seem to find anything specific. Would you mind pointing me in the right direction?
I am currently running version 6.2.0 and I'm using
new KubernetesClientBuilder().withConfig(config).build()
keep in mind that my Config object is built uponConfig config = fromKubeconfig(kubeconfigFile)
.The current result I have, is that after a while, the cluster would lose authorization. The error thrown is from
config.getErrorMessages().put(401, "Unauthorized! Token may have expired! Please log-in again.");
on line 709 in Config.javaThank you for sparing the time!
Beta Was this translation helpful? Give feedback.
All reactions