estafette / estafette-gke-preemptible-killer

Kubernetes controller to spread preemption for preemtible VMs in GKE to avoid mass deletion after 24 hours

Home Page:https://helm.estafette.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`net/http: timeout awaiting response headers` error with Workload Identity

nonylene opened this issue · comments

With Workload Identity, estafette-gke-preemptible-killer often fails to delete GCE instance with an error as below.

Delete https://www.googleapis.com/compute/v1/projects/<project name>/zones/<zone>/instances/<instance name>?alt=json: Get http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token: net/http: timeout awaiting response headers.

This is due to the old Google Cloud Go client lib used by estafette-gke-preemptible-killer; there was an too aggressive timeout for getting instance metadata, fixed in v0.52.

Could you update the Google Cloud Go client lib cloud.google.com/go?

Similar issue: GoogleCloudPlatform/cloud-sql-proxy#357