Home > Net >  Setup connection between GCE and K pod
Setup connection between GCE and K pod

Time:02-22

My virtual machines is up and I have also setup a proxy server and my firewall rules are setup for all internal IP. What I need here is; how can I connect running VM's to k-pod's and I need communication within the pods using internal IP.

CodePudding user response:

You need to create an internal LB and connect VM or you need to use VPC peering in a different network. If your GKE and VM are in the same network you can use the internal IP from your VM to connect. If it's from inside of POD you can send curl requests to the VM over internal IP.

If your GKE and GCP VM both are in the different networks you can use the VPC peering to connect both networks and use the internal IP of VM from POD. Please refer and refer Configure cluster access for kubectl.

  • Related