Access EKS API using a Bearer token
Jump to navigation
Jump to search
APISERVER=$(kubectl config view --minify | grep server | cut -f 2- -d ":" | tr -d " ") TOKEN=$(kubectl describe secret default-token | grep -E '^token' | cut -f2 -d':' | tr -d " ") You can use a default-token or generate one in EKS using: aws eks get-token
curl $APISERVER/api --header "Authorization: Bearer $TOKEN" --insecure [1]
Related[edit]
Related[edit]
See also[edit]
Advertising: