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
)
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’.
Then, I configured Weaviate from the marketplace. Here, I set to use the cluster I created at step 1.
Last, I clicked on ‘deployment’
At the end of deployement, I connected to the Google Cloud Shell and ran the following command:
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.