Reputation: 87
How do I assign an IP address into an Ingress controller? I am using AWS EKS and also GCP GKE.
If possible is to get a private IP address from the cloud provider. I don't want it to be available to the public. I use it as internal load-balancer using HaProxy.
I saw this article but it not have enough details. https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/static-ip
Thanks Yaniv
Upvotes: 0
Views: 903
Reputation: 4899
You can use the nginx ingress controller and use internal load balancers for as the service. Using an internal LB will use an internal IP and you can define that internal IP (if you want) in the service definition.
This will not work with the cloud provider ingress controller. If you use the GCE or AWS ingress, you will either get a GCE HTTP(S) LB or an elastic IP. Using the Nginx ingress controller will provide you a workaround
Upvotes: 1