How to Monitor Vault Token and Expiry Dates of Various certs?

Problem

How to check the status of vault token pro-actively

Environment

  • Platform9 Edge Cloud - v5.3 and Higher

Answer

Scenario-1: How to check the vault token status specific to a cluster?

Run the below commands from the DU Vm as the root user:

  1. Fetch the vault token:
Command
Copy
  1. Export the vault address:
Command
Copy
  1. Export the cluster UUID:
Command
Copy
  1. Export the cluster vault token:
Command
Copy
  1. Execute the vault token lookup
Command
Copy

Example output:

Commands
Copy

Scenario-2: Monitoring Sunpike CA and Certs

Run the below commands from the DU Vm as the root user:

Commands
Copy

If the Sunpike CA is expiring, please follow the manual steps mentioned in the following article to regenerate it: https://platform9.com/kb/PEC/refresh-sunpike-ca

To check the sunpike-kube-apiserver certificate expiry:

Bash
Copy

Scenario-3: Monitoring Cluster CA and Certs

Run the below commands from the DU Vm as the root user:

Commands
Copy

This outputs the date on which the CA is created and the date on which it expires, per cluster. If the certs are expiring, please follow the manual steps mentioned in the following article to regenerate it: https://platform9.com/kb/PEC/refresh-cluster-ca

To verify the cluster certificate details from the node:

Bash
Copy

Scanario-4 : Vault token renewal Steps:

Follow the steps mentioned in the KB Renew expired vault token from the DU VM.

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