如何检查我的kube上有哪些入口控制器以及默认的控制器是什么 [英] How can I check what ingress controller I have on my kube and what is the default
问题描述
我有没有AWS或Google Cloud的kubeadm和Kubernetes v1.12.
I have kubeadm and Kubernetes v1.12 without AWS or Google Cloud.
我想知道安装的Kubernetes集群是否已经具有入口控制器,并且是否具有两个默认值.
I want to know if the Kubernetes cluster installed already has an ingress controller and if it has two what is the default.
谢谢:)
推荐答案
您可以使用以下方法检查实现入口控制器(实际上是入口名称)的Pod:
You can check for pods implementing ingress controllers (actually with ingress in the name) with:
kubectl get pods --all-namespaces | grep ingress
和向其公开的服务:
kubectl get service --all-namespaces | grep ingress
正如@ Prafull Ladha 所述,默认情况下,您将没有入口控制器. 文档指出在除GCE/Google Kubernetes以外的环境中"引擎,您需要将控制器部署为Pod."
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".
这篇关于如何检查我的kube上有哪些入口控制器以及默认的控制器是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!