Difference between revisions of "TOKEN"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* [[aws eks get-token --cluster-name]] | * [[aws eks get-token --cluster-name]] | ||
* [[aws sts get-session-token]] | * [[aws sts get-session-token]] | ||
+ | * [[kubectl --token]] | ||
* <code>[[kubectl describe secret default-token]]</code> | * <code>[[kubectl describe secret default-token]]</code> | ||
Latest revision as of 09:20, 2 November 2023
- aws eks get-token --cluster-name
- aws sts get-session-token
- kubectl --token
kubectl describe secret default-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 " ")
Token
See also[edit]
Advertising: