Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to merge multiple ingresses with the IBM Cloud Kubernetes Service?

Tags:

An individual ingress backed by a service requires an annotation ingress.bluemix.net/rewrite-path to get rewriting of the url. Managing multiple services in code is error-prone. Is there a way to define multiple individual ingress objects and have them all merged by the loadbalancer? It does not seem to work this way out of the box.

like image 527
mhb Avatar asked Sep 30 '18 21:09

mhb


People also ask

Can a Kubernetes cluster have multiple ingress controllers?

You may deploy any number of ingress controllers using ingress class within a cluster.

What is difference between ingress and service in Kubernetes?

Unlike NodePort or LoadBalancer, Ingress is not actually a type of service. Instead, it is an entry point that sits in front of multiple services in the cluster. It can be defined as a collection of routing rules that govern how external users access services running inside a Kubernetes cluster.

Why do we need ingress in Kubernetes?

Kubernetes Ingress is an API object that provides routing rules to manage external users' access to the services in a Kubernetes cluster, typically via HTTPS/HTTP. With Ingress, you can easily set up rules for routing traffic without creating a bunch of Load Balancers or exposing each service on the node.

How does ingress work in Kubernetes?

In Kubernetes, an Ingress is an object that allows access to your Kubernetes services from outside the Kubernetes cluster. You configure access by creating a collection of rules that define which inbound connections reach which services. This lets you consolidate your routing rules into a single resource.


1 Answers

Yes. You can have them on different namespaces you can read more about it here

You can also read about it on this Github issue

You can also have multiple ingress controllers for example with nginx ingress controller by specifying the --ingress-class option on the nginx ingress controller command line. More information here.

like image 99
Rico Avatar answered Sep 18 '22 13:09

Rico