Access Kubernetes REST API using default token
Revision as of 10:29, 10 October 2023 by Welcome (talk | contribs) (Created page with " 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'...")
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 " ") curl $APISERVER/api --header "Authorization: Bearer $TOKEN" --insecure Ref: https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/
Kubernetes API, Kubernetes API server, EKS API, apiVersion:, kubectl api-resources, kubectl api-versions, kind:
, Kubernetes API endpoint, 6443, 10250 (kubelet) kube-apiserver
, /etc/kubernetes/manifests/kube-apiserver.yaml, valueFrom, /var/log/kube-apiserver.log, /api/v1/, k8s.io
Advertising: