How to Increase the Validity of Certificate Based Kubeconfig
Problem
How to increase the validity of certificate-based kubeconfig.
Environment
Platform9 Managed Kubernetes - All versions
For PMK (SaaS) support team will carry out the procedure below. Please open a Support Ticket.
For PEC/SMCP (air-gapped), the steps can be performed from the management plane.
Procedure
How to access the Qbert Database:
If using PEC, SSH to the management plane VM and run
mysql qbert.If using SMCP, exec into the mysql exporter pod in the management plane cluster and run
mysql qbert.
The default validity of certificate-based kubeconfig is 24 hours. Which is set by a parameter
certExpiryHrsin Qbert Database.
Example:
To increase or decrease the validity of certificate-based kubeconfig, update the
certExpiryHrsin Qbert Database for the respective cluster.
Example:
After updating the Qbert Database, Check the validity of newly generated certificate-based kubeconfigs.
Example:
The changes made to the Qbert Database are persistent through Cluster and Management plane upgrades.
Additional Information
Refer to the document for instructions on how to open a support ticket.
