export TOKEN=eyJhbGciOiJSUzI1NiIsImtpZCI6InRjMEs2b2tyVUFjdHZuazNTS1VrM0s3LWFHMlVjek5NTUJnVUVSTTVHQnMifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJzaGlvcmlrbyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJzaGlvcmlrby1hZG1pbi10b2tlbi1meHZicyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJzaGlvcmlrby1hZG1pbiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImYzZTQ2ODlkLWIxYmItNDgxZi1hZGNmLWRiODRkMjdhMmQzNiIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpzaGlvcmlrbzpzaGlvcmlrby1hZG1pbiJ9.b0hU28Pj8ctN_x2tqi0aVAbIQFltYV3PhF0AptsOlsjEzZpiwC3v1zphFRT-r7S8VDmmsCLBOUw7L8sKxPmoP2AnNi655mW1tmYraeklyOZxca29WSqNACEmJ0ZkVypdhXe5MWWNujKqXQy-nDl6RsSO4Fdk0qlet3HsX5bS_gugSNLv-ULGwcZa0HNVFlQV5LdlbxmFGEYgASCgcboehiJpbif0S1M2Wh2Z6yluRLqiXeBDld_aXoaVusuZErw6jix50WrLnppOLpJ-kY2aD-UutcWd1SdLaE9eAL00m0y5OgOhYKnoM3ViaFqL-3Y-vNecvT9GUg2nDsBMxykfVg
curl -k -H "Authorization: Bearer ${TOKEN}" https://127.0.0.1:6443/api/v1/namespaces/robocloud/pods --insecure
标签:TOKEN,apiserver,访问,token,集群,k8s
From: https://www.cnblogs.com/umichan0621/p/17580904.html