How to use static IP address on Google Container Engine (GKE)

#1 Create an static ip address from console or gcloud.

gcloud compute addresses create ip-address --global

#2 Add an annotation of global static ip name to our Ingress object.

kind: Ingress
name: nginx
annotations: "ip-address"
serviceName: nginx
servicePort: 80

Thats it! :)

Like what you read? Give Hüseyin Mert a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.