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

懵懂的女人 提交于 2019-12-10 20:39:31

问题


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


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/53299238/how-can-i-check-what-ingress-controller-i-have-on-my-kube-and-what-is-the-defaul

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!