Search code examples
kuberneteskubernetes-ingress

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


Solution

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