How to Renew vault Token?

Problem

The vault token is expired.

Environment

  • Platform9 Managed Kubernetes v5.9.3

Validation

Steps to validate the token expiry:

  1. Exec into pf9-vault pod in Management Plane namespace.
Command
Copy
  1. Export the required details.
Command
Copy
  1. Run the below command to know token expiry details:
Command
Copy

Example:

Command
Copy

Procedure

  1. Exec Into pf9-vault pod in customer namespace
Management cluster
Copy
  1. Export required details (in pf9-vault pod)
Management Cluster
Copy
  1. Generate New Token (in pf9-vault pod)
Management Cluster
Copy
  1. Update the new token in qbert Database (in pf9-vault pod)
Management Cluster
Copy
  1. Open a new terminal window and Verify if the new token is updated at cluster and node level (Execute on a new terminal window)
Management Cluster
Copy
  1. If the token in Sunpike does not match the token in Qbert, run the following command to patch the Sunpike host object.(from the same terminal window as Step 5 )
Management cluster
Copy
  1. restart the full stack restart on nodes that got stuck at the Cert Generation phase (if any).
  2. revoke the old Token (in pf9-vault pod) - once all nodes are working fine.
Management Cluster
Copy

Additional Information

To check if the vault token is expired follow these steps:

  1. From the problematic master node, perform this.
Master node
Copy
  1. Come to the DU VM and perform this.
DU VM
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard