For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Procedure

Info

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.

qbert> select id,name,uuid,status,lastOk,lastOp,taskStatus,kubeRoleVersion,certExpiryHrs from clusters\G;

Example:

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

Example:

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

Example:

Info

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.

Last updated