List all available ingress controllers on Kubernetes

1/15/2020

I have a GKE cluster with Traefik being used as an ingress controller.

I want to create a GKE ingress, but I can't find anywhere which kubernetes.io/ingress.class to use.

I tried to use kubernetes.io/ingress.class: gce, but nothing happened... it's almost like the ingress was completely ignored.

Is there a way to list all available ingress controllers/classes? Or, at least, which kubernetes.io/ingress.class should I use to create a GKE Ingress? (I'll still use traefik for other ingresses).

-- caarlos0
google-kubernetes-engine
kubernetes
kubernetes-ingress

2 Answers

1/15/2020

On GKE, The kubernetes.io/ingress.class: gce is the default ingress class, if there is no an annotation defined under the metadata section, the Ingress Resource uses the GCP GCLB L7 load balancer to serve traffic. So have you tried setting the annotation to an empty string?

Being said that, answering the following questions it will help me to understand the contest:

  1. Could you please define you use case? Are you trying to define two ingress for the same service or convert to curren Traefik to a GCE ingress?
  2. Could you please attach your GKE ingress definition to see if there is a sintaxis error ?
-- Victor_Torres
Source: StackOverflow

1/15/2020

Run describe on the Ingress. If you see create/add events, you have an Ingress controller running in the cluster, otherwise, you probably have the HttpLoadBalancing(GKE Ingress Controller) add-on disabled on your GKE cluster.

-- Arghya Sadhu
Source: StackOverflow