How to renew Karbon cluster's kubeconfig dynamically? | Nutanix Community
Skip to main content
Solved

How to renew Karbon cluster's kubeconfig dynamically?


Forum|alt.badge.img+1
Hi all

Since kubeconfig is only valid for 24hours, is there a way to renew it automatically on expiry?
An API call maybe? Using the same credentials to login on the Karbon Console?

The idea is to automatically update the kubeconfig from our CI/CD pipeline to deploy to Kubernetes.

Please also share, if there is, best practices for integrating Karbon clusters with Jenkins CI/CD pipeline.

I thank you

Best answer by crisj

Hello KeoNaane,

best practice for integrating CI/CD tool like jenkins is to create a dedicated service account, configure the correct needed RBAC right and use the token of this service account to configure Jenkins.

Best Regards
View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

crisj
Nutanix Employee
Forum|alt.badge.img+2
  • Nutanix Employee
  • 6 replies
  • Answer
  • July 4, 2019
Hello KeoNaane,

best practice for integrating CI/CD tool like jenkins is to create a dedicated service account, configure the correct needed RBAC right and use the token of this service account to configure Jenkins.

Best Regards

Forum|alt.badge.img+1
  • Author
  • Adventurer
  • 7 replies
  • July 5, 2019
Sweet. Thanks @crisj