Reputation: 3097
How can I connect to VM's running in GCP compute engine from Kubernetes pod? I have setup a proxy server in Compute Engine and I need to use that from within pods.
This communication needs to be using internal IP. I have allowed firewall rules to allow all internal IP.
Any suggestions on how to connect from pods to gcp vm's?
Upvotes: 2
Views: 1174
Reputation: 30083
You can create an internal load balancer in GCP and connect VM or you can use the VPC peering if in a different network.
From inside of POD you can send curl requests to the VM over internal IP.
OR
Upvotes: 2