简体   繁体   English

在 minikube 中未启用入口

[英]ingress not enabled in minikube

I enabled ingress on minikube我在minikube上启用了ingress

C:\WINDOWS\system32>minikube addons enable ingress
  - Using image k8s.gcr.io/ingress-nginx/controller:v0.44.0
  - Using image docker.io/jettech/kube-webhook-certgen:v1.5.1
  - Using image docker.io/jettech/kube-webhook-certgen:v1.5.1
* Verifying ingress addon...
* The 'ingress' addon is enabled

But when I list it, I don't see it但是当我列出它时,我看不到它

C:\WINDOWS\system32>minikube kubectl -- get pod -n kube-system
NAME                               READY   STATUS    RESTARTS   AGE
coredns-74ff55c5b-px725            1/1     Running   0          13d
etcd-minikube                      1/1     Running   0          13d
kube-apiserver-minikube            1/1     Running   6          13d
kube-controller-manager-minikube   1/1     Running   0          13d
kube-proxy-h7r79                   1/1     Running   0          13d
kube-scheduler-minikube            1/1     Running   0          13d
storage-provisioner                1/1     Running   76         13d

Is the ingress not enabled?未启用ingress How can I check?我该如何检查?

I have recreated this situation and got the same situation.我重新创建了这种情况并得到了相同的情况。 After execution the command:执行命令后:

minikube addons enable ingress

I have same output as yours:我有和你一样的输出:

  - Using image k8s.gcr.io/ingress-nginx/controller:v0.44.0
  - Using image docker.io/jettech/kube-webhook-certgen:v1.5.1
  - Using image docker.io/jettech/kube-webhook-certgen:v1.5.1
* Verifying ingress addon...
* The 'ingress' addon is enabled

I have also the same output, when I have executed:当我执行时,我也有相同的输出:

minikube kubectl -- get pod -n kube-system

Solution: First you can list namespaces with command:解决方案:首先,您可以使用以下命令列出命名空间:

minikube kubectl get namespaces

And your output should be as follow:您的输出应如下所示:

NAME              STATUS   AGE
default           Active   4m46s
ingress-nginx     Active   2m28s
kube-node-lease   Active   4m47s
kube-public       Active   4m47s
kube-system       Active   4m47s

The ingress should be in the ingress-nginx namespace.入口应该在ingress-nginx命名空间中。 Execute:执行:

minikube kubectl -- get pods --namespace ingress-nginx

and then your output should be as follow:然后你的输出应该如下:

NAME                                        READY   STATUS      RESTARTS   AGE
ingress-nginx-admission-create-nqnvj        0/1     Completed   0          2m56s
ingress-nginx-admission-patch-62z9z         0/1     Completed   0          2m55s
ingress-nginx-controller-5d88495688-ssv5c   1/1     Running     0          2m56s

Summary - your ingress controller should work, just in a different namespace.总结 - 您的入口控制器应该可以工作,只是在不同的命名空间中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM