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

11/14/2018

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 :)

-- pioupiou
kubernetes
kubernetes-ingress

2 Answers

11/14/2018

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".

-- Ryan Dawson
Source: StackOverflow

11/14/2018

There will not be any ingress or ingress-controller defined on the kubernetes cluster defined by kubeadm.

You can define your own ingress resource, read more about it here

For ingress resource to work you must have ingress-controller running. This controller is unlike other controller, which runs as a part of kube-controller-manager and automatically created as a part of cluster creation.

You need to choose the ingress controller implementation that suits your cluster. Kubernetes currently supports and manages Nginx and google ingress controller. You can also choose other ingress controller like Traefik or kong.

Hope this helps

-- Prafull Ladha
Source: StackOverflow