Google Kubernetes Engine: java.net.UnknownHostException: accounts.google.com

6/26/2018

We are frequently seeing (once or twice every day at least) "java.net.UnknownHostException" errors on some of our Google Kubernetes Engine pods. When it happens, these errors come for all external hosts our process on those pods are trying to reach, for instance:

  • java.net.UnknownHostException: datastore.googleapis.com
  • java.net.UnknownHostException accounts.google.com
  • com.google.gcloud.datastore.DatastoreException - I/O error

Anyone else has faced this issue? What could be the cause of this sudden loss of this connectivity on the pods? Off late (for last 2 weeks or so), we seem to be noticing this issue more frequently than before.

Thanks.

-- Roshan
google-cloud-platform
google-compute-engine
google-kubernetes-engine

0 Answers