How To Get Kubernetes Config Information And Token Details Using Kubectl Command

Problem

Get the Kubernetes configuration information details, Certificate details and Token information using the kubectl command.

Environment

  • Platform9 Managed Kubernetes - v5.0 and Higher

Procedure

You can use kubectl config command to get those details

  1. Execute below command to get the details cluster name, server url, username, etc. Token and Certificate information will be REDACTED with this command.
Kubeconfig View
Copy

2. To get the information related to Token and Certificate without getting REDACTED, use this command:

Config View
Copy
  1. Using above procedure you can get all the information and is alternative way if kubeconfig file is unknown.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches