Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check what ingress controller I have on my kube and what is the default

I have kubeadm and Kubernetes v1.12 without AWS or Google Cloud.

I want to know if the Kubernetes cluster installed already has an ingress controller and if it has two what is the default.

Thanks :)

like image 566
pioupiou Avatar asked Nov 14 '18 11:11

pioupiou


People also ask

Does Kubernetes have a default ingress controller?

Ingress Controllers. Kubernetes as a project currently maintains GLBC (GCE L7 Load Balancer) and ingress-nginx controllers. With the exception of GKE, which includes GLBC by default, ingress controllers must be installed separately prior to usage.

How do I know what version of Ingress I have?

If you need to determine the version of the nginx ingress controller deployed, then you can invoke the ingress controller binary with the '–version' flag. But this binary is located in the ingress-nginx-controller pod, so do a 'kubectl exec' like below.


1 Answers

You can check for pods implementing ingress controllers (actually with ingress in the name) with:

kubectl get pods --all-namespaces | grep ingress

And services exposing them with:

kubectl get service --all-namespaces | grep ingress

As @Prafull Ladha says, you won't have an ingress controller by default. The documentation states that in "environments other than GCE/Google Kubernetes Engine, you need to deploy a controller as a pod".

like image 75
Ryan Dawson Avatar answered Oct 12 '22 22:10

Ryan Dawson