...
If you have done this correctly, the config
file will look like this below (look at the token
field at the end of the file). Launch the command kubectl config view
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
apiVersion: v1 clusters: - cluster: certificate-authority-data: DATA+OMITTED server: https://<IP>:<port> name: <cluster_name> contexts: - context: cluster: <cluster_name> user: <user_name> name: <name> current-context: <current-context> kind: Config preferences: {} users: - name: <user_name> user: client-certificate-data: REDACTED client-key-data: REDACTED token: <token> |
...