[Question] Connection to Weaviate in GKE

Hi everyone,
I deployed a Weaviate instance on GKE cluster. Now, I’m trying to connect from a Google Colab notebook. The GKE cluster is created with the default setting the GCP provide when you try to create a standard cluster. In the yaml of weaviate, I left everything as it is, so no api-key or oicd were set.
Here the code i’m using in G Colab.

import weaviate
from weaviate.auth import AuthApiKey
# Connect to a local Weaviate instance
client = weaviate.connect_to_custom(
    http_host=EXTERNAL_IP,
    http_port=80,
    http_secure=False,
    grpc_host=EXTERNAL_IP_GRPC,
    grpc_port=50051,
    grpc_secure=False
)

It gets me

ConnectError: [Errno 111] Connection refused

but if I run

import subprocess

command = ["curl", f"http://{EXTERNAL_IP}/v1/meta"]
output = subprocess.check_output(command, encoding='utf-8')
print(output)

I correctly get as output

{"hostname":"http://[::]:8080","modules":{"generative-cohere":{"documenta....

Thanks in advance,
Mattia

HI @Mattia_ZONELLI ! Welcome to our community! :hugs:

Can you detail exactly how you have installed?

Was it using out helm chart on GKE?

Or was your cluster installed from the marketplace?

Thanks!

Hi @DudaNogueira thanks for you answer.

  1. From the Kubernetes Engine console, I created a standard cluster, with the default settings pre-compiled by GCP, and changed only the region to ‘us-east1-b’.
  2. Then, I configured Weaviate from the marketplace. Here, I set to use the cluster I created at step 1.
  3. Last, I clicked on ‘deployment’

At the end of deployement, I connected to the Google Cloud Shell and ran the following command:

gcloud container clusters get-credentials [YOUR_CLUSTER_NAME] --zone [YOUR_GC_ZONE] --project [YOUR_GC_PROJECT]

and got the IPs by this one

kubectl get svc --all-namespaces

Up to now, for this cluster, i did not used helm chart at all

Thanks

Hi,
@Mattia_ZONELLI did you succeed in solving the issue ?
I have the same issue after following this step to install weaviate in gke (Google Cloud Marketplace | Weaviate - Vector Database).
I have the following error : ConnectTimeout: timed out

Yes, I solved it by deploying weaviate through GKE directly without using the marketplace. To be more clear, I’ve just followed this steps Kubernetes | Weaviate - Vector Database and it worked.