google-cloud-platformnetwork-programmingvirtual-machinemetabase

How to access my GCP VM on localhost:3000


I have Metabase running through a Docker image on a Google Compute Engine. The application defaults to port localhost:3000 however, I can't seem to figure out how to access this port on the Google VM.

I tried accessing the VM through gcloud compute ssh {VM-NAME} --project={PROJECT} --zone={ZONE} and this works. I used the --troubleshoot option as well (no problems) and setup Firewall rules to make the VM accessible on TCP ports 22 and 3000

Note: I am a starting Data Engineer and just start to grasps the different concepts surrounding cloud computing, storage & networking. I think the problem must be somewhere surrounding the way I try to reach the Virtual Machine, however, I am unsure of where the problem lies exactly and I can't seem to find the solution online. I hope someone here can help me in the right direction so I can continue my learning journey!


Solution

  • There is many steps to check to achieve what you want to achieve: