Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languageyml
titleConfig with token
collapsetrue
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>

...