estafette / estafette-gke-preemptible-killer

Kubernetes controller to spread preemption for preemtible VMs in GKE to avoid mass deletion after 24 hours
https://helm.estafette.io
MIT License
448 stars 72 forks source link

orbidden: User "system:anonymous" #72

Open harissutanrafiq opened 4 years ago

harissutanrafiq commented 4 years ago

I try run on GCPcloudshell with KUBECONFIG environment its error, ut if using kubectl proxy its working

INF Starting version ... branch= buildDate= goVersion=go1.13 os=linux revision= DBG Serving /liveness endpoint... port=:5000 DBG Serving Prometheus metrics... port=:9101 INF Listing all preemptible nodes for cluster... ERR Error while getting the list of preemptible nodes error="kubernetes api: Failure 403 nodes is forbidden: User \"system:anonymous\" cannot list resource \"nodes\" in API group \"\" at the cluster scope" INF Sleeping for 9 seconds... ^C INF Received signal interrupt. Waiting for running tasks to finish... INF Shutting down...