Kubernetes Subdomain for each service

3/9/2017

How to add multiple ingress or Load balancers in kubernetes for separate services, here is the post who I ended up creating a ingress to my sub-domain. Is there any way we can specific the same IP address created by GCE to launch multiple Ingress resources.

I am using GCE for hosting my cluster. If there is a better way to handle this scenario to have multiple resources to expose a service with a sub-domain www.app1.domain.com, www.app2.domain.com which are entirely different apps and have two ingress resources that point to two these specific services using same external IP address.

From the post I could able to create but unable to specify the external IP address to it.

Any help is much appreciated, thank you.

-- kt14
dns
google-cloud-platform
kubernetes

1 Answer

3/10/2017

You can just define multiple Ingress resources and put them to Kubernetes - they don't have to be in the same yaml file. All ingress resources share the same proxy and they are routed via the defined hostname and path to the wanted service.

I am not sure what you mean with the external IP address.

-- svenwltr
Source: StackOverflow