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 certExpiryHrs in Qbert Database.
mysql
Copy

Example:

mysql
Copy
  • To increase or decrease the validity of certificate-based kubeconfig, update the certExpiryHrs in Qbert Database for the respective cluster.
mysql
Copy

Example:

mysql
Copy
  • After updating the Qbert Database, Check the validity of newly generated certificate-based kubeconfigs.
bash
Copy

Example:

bash
Copy

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.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard