silly-jelly-27487
11/17/2024, 4:29 AMrancher login https://<rancher_url> -t <bearer_token>
Those tokens have format like token-xxxx
and store a tokenKey
in ~/.rancher/cli2.json
Will be any difference if users follow that procedure to create their tokens?
rancher login $RANCHER_URL -t $(rancher token --user $USERNAME --server $RANCHER_URL | jq -r '.status.token')
This way are prompted to enter their credentials in terminal and save a token":"kubeconfig-u-xxxxx-
in ~/.rancher/cli2.json