# \[Question\] Connection to Weaviate in GKE

**URL:** <https://forum.weaviate.io/t/question-connection-to-weaviate-in-gke/2040>\
**Category:** Support\
**Tags:** developer-experience, python\
**Created:** [April 16, 2024, 9:14am UTC](https://forum.weaviate.io/t/question-connection-to-weaviate-in-gke/2040 "2024-04-16T09:14:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattia\_ZONELLI](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/mattia_zonelli/32/1326_2.png) [@Mattia\_ZONELLI](https://forum.weaviate.io/u/Mattia_ZONELLI)\
**Post date:** [April 16, 2024, 9:14am UTC](https://forum.weaviate.io/t/question-connection-to-weaviate-in-gke/2040/1 "2024-04-16T09:14:04Z")

</div>

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.

```auto
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

```auto
ConnectError: [Errno 111] Connection refused

```

but if I run

```auto
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

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

```

Thanks in advance,  
Mattia

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [April 16, 2024, 11:53am UTC](https://forum.weaviate.io/t/question-connection-to-weaviate-in-gke/2040/2 "2024-04-16T11:53:37Z")

</div>

HI @Mattia_ZONELLI ! Welcome to our community! 🤗

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!

---

<div class="post-metadata">

**Author:** ![Mattia\_ZONELLI](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/mattia_zonelli/32/1326_2.png) [@Mattia\_ZONELLI](https://forum.weaviate.io/u/Mattia_ZONELLI)\
**Post date:** [April 16, 2024, 12:49pm UTC](https://forum.weaviate.io/t/question-connection-to-weaviate-in-gke/2040/3 "2024-04-16T12:49:08Z")

</div>

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:

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

```

and got the IPs by this one

```auto
kubectl get svc --all-namespaces

```

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

Thanks

---

<div class="post-metadata">

**Author:** ![alex](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/alex/32/1514_2.png) [@alex](https://forum.weaviate.io/u/alex)\
**Post date:** [May 15, 2024, 12:49pm UTC](https://forum.weaviate.io/t/question-connection-to-weaviate-in-gke/2040/4 "2024-05-15T12:49:39Z")

</div>

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](https://weaviate.io/developers/weaviate/installation/gc-marketplace)).  
I have the following error : `ConnectTimeout: timed out`

---

<div class="post-metadata">

**Author:** ![Mattia\_ZONELLI](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/mattia_zonelli/32/1326_2.png) [@Mattia\_ZONELLI](https://forum.weaviate.io/u/Mattia_ZONELLI)\
**Post date:** [May 15, 2024, 4:58pm UTC](https://forum.weaviate.io/t/question-connection-to-weaviate-in-gke/2040/5 "2024-05-15T16:58:24Z")

</div>

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](https://weaviate.io/developers/weaviate/installation/kubernetes) and it worked.
