How to define external ip for kubernetes ingress

10/21/2016

I have question about kubernetes ingress.

I want to use ingress with my Amazon account and/or private cloud and want to assign external IP.

It is possible to assign external ip for services : Services documentation - chapter external IP but cannot find a way to do that for Ingress : Ingress documentation.

My question is direct especially to Kubernetes team. Similar question was asked by Simon in this topic : How to force SSL for Kubernetes Ingress on GKE 2 but he asked about GKE while I am interested in private cloud, AWS.

Thank you in advance.

[UPDATE]

Guys found that my question may was answered already in this topic. Actually answer that @anigosa put there is specific for GCloud. His solution won't work in private cloud neither in AWS cloud. In my opinion the reason for that is that he use type: LoadBalancer (which cannot be used in private cloud) and use loadBalancerIP property which will works only on GCloud(for AWS it cause error : "Failed to create load balancer for service default/nginx-ingress-svc: LoadBalancerIP cannot be specified for AWS ELB ").

-- Tomasz S
amazon-web-services
kubernetes

1 Answer

10/21/2016

It looks like this question was just asked a short time ago by another user!

https://stackoverflow.com/a/40164860/1342445

To quote the answer from @danigosa, it looks like you need to create a service that points to your ingress controller.

-- pnovotnak
Source: StackOverflow