`net/http: timeout awaiting response headers` error with Workload Identity
nonylene opened this issue · comments
nonylene commented
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