How can I securely connect to databases in GKE using GUI tools?

217 views Asked by At

I'd like to connect to my databases in GKE using GUI tools but I don't want to expose the services to the world. What are some ways to accomplish this?

Update: for instance, I'd like to use TablePlus to connect to a mysql pod inside the cluster.

1

There are 1 answers

0
Robert On
  1. Create a new VM in the region where your cluster lives.
  2. Install the GUI tool.
  3. Specify an IP address in the cluster's IP range.

See the example below, which describes how to connect to a database which is running on a GKE cluster. https://cloud.google.com/composer/docs/access-airflow-database