Anthos "Unreachable Agent - please check if GKE Connect Agent is deployed correctly."

1k views Asked by At

I have successfully created an Anthos cluster with a simple command from the official guide.

Unfortunately, I'm getting the following error in GCP Console:

Unreachable Agent - please check if GKE Connect Agent is deployed correctly.

On the other side, the control plane on AWS is healthy with running kubelets, kube-api-servers, gke_multicloud_agent, and other Kubernetes-related processes.


Also, I've authorized Cloud Logging for this cluster, but getting only 2 types of errors. Unfortunately, I'm pretty sure those two are not related to the GKE Connect Agent errors:

unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request

&

loading OpenAPI spec for "v1beta1.metrics.k8s.io" failed with: failed to retrieve openAPI spec, http error: ResponseCode: 503, Body: service unavailable


Does anyone know how should I debug issues with GKE Connect Agent connectivity?

1

There are 1 answers

0
Ivan Aracki On BEST ANSWER

The issue was fixed by following the official terraform anthos-samples.

It seems the Connect Agent pod will be installed on one of the nodes from the node-pool once it's created.

The official guide is a bit misleading because it's not mentioning Connect Agent won't exist with only control-plane up and running.