TOKEN

From wikieduonline
Revision as of 13:24, 30 October 2023 by Welcome (talk | contribs)
Jump to navigation Jump to search



aws eks get-token --cluster-name


 aws sts get-session-token
rancher login https://<SERVER_URL> --token <BEARER_TOKEN>

Bearer token
PRIVATE-TOKEN 
curl $APISERVER/api --header "Authorization: Bearer $TOKEN" --insecure


TOKEN=$(aws eks get-token --cluster-name education-eks-rQbSpHq6 --output text | grep STATUS |  awk '{print $NF}')
TOKEN=$(kubectl describe secret default-token | grep -E '^token' | cut -f2 -d':' | tr -d " ")

See also

Advertising: