How to renew Karbon cluster's kubeconfig dynamically? | Nutanix Community
Skip to main content
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
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
Sweet. Thanks @crisj