Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set a static IP address for a Google Container Engine (GKE) service?

A little bit of background: I have a Go service that uses gRPC to communicate with client apps. gRPC uses HTTP2, so I can't use Google App Engine or the Google Cloud HTTP Load Balancer. I need raw TCP load balancing from the internet to my Go application.

I went through the GKE tutorials and read the various docs and I can't find any way to give my application a static IP address. So how do you get a static IP attached to something running in GKE?

like image 289
Zach Brock Avatar asked Oct 19 '15 21:10

Zach Brock


1 Answers

This is not supported in kubernetes v1.0.x but in v1.1.x it will be available as service.spec.loadBalancerIP. As long as you actually own that IP we will use it.

like image 80
Tim Hockin Avatar answered Oct 22 '22 04:10

Tim Hockin