• 安装部署
  • kubesphere-router-kubesphere-system-ingress一直挂起

kubesphere 3.2.1

已单独安装ingress-nginx,开启集群网关发现 kubesphere-router-kubesphere-system-ingress一直处于挂起状态。

日志报以下错误:

I0325 06:57:34.003635 7 flags.go:211] “Watching for Ingress” class=“nginx”

W0325 06:57:34.003695 7 flags.go:216] Ingresses with an empty class will also be processed by this Ingress controller

W0325 06:57:34.004204 7 client_config.go:614] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.

I0325 06:57:34.004570 7 main.go:241] “Creating API client” host=“https://10.96.0.1:443

I0325 06:57:34.025612 7 main.go:285] “Running in Kubernetes cluster” major=“1” minor=“23” git=“v1.23.1” state=“clean” commit=“86ec240af8cbd1b60bcc4c03c20da9b98005b92e” platform=“linux/amd64”

I0325 06:57:34.237293 7 main.go:105] “SSL fake certificate created” file=“/etc/ingress-controller/ssl/default-fake-certificate.pem”

I0325 06:57:34.239486 7 main.go:115] “Enabling new Ingress features available since Kubernetes v1.18”

W0325 06:57:34.241122 7 main.go:127] No IngressClass resource with name nginx found. Only annotation will be used.

I0325 06:57:34.281945 7 nginx.go:254] “Starting NGINX Ingress controller”

I0325 06:57:34.311670 7 event.go:282] Event(v1.ObjectReference{Kind:“ConfigMap”, Namespace:“kubesphere-controls-system”, Name:“kubesphere-router-kubesphere-system”, UID:“1728aa87-467f-41b1-94e1-4b2c26c2e733”, APIVersion:“v1”, ResourceVersion:“22644627”, FieldPath:""}): type: ‘Normal’ reason: ‘CREATE’ ConfigMap kubesphere-controls-system/kubesphere-router-kubesphere-system

E0325 06:57:35.385318 7 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

E0325 06:57:36.335535 7 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

E0325 06:57:38.950545 7 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

2022/03/25 06:57:40 Get “http://127.0.0.1:10246/nginx_status”: dial tcp 127.0.0.1:10246: connect: connection refused

W0325 06:57:40.718233 7 nginx_status.go:172] unexpected error obtaining nginx status info: Get “http://127.0.0.1:10246/nginx_status”: dial tcp 127.0.0.1:10246: connect: connection refused

E0325 06:57:44.625319 7 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

2022/03/25 06:57:51 Get “http://127.0.0.1:10246/nginx_status”: dial tcp 127.0.0.1:10246: connect: connection refused

W0325 06:57:51.473161 7 nginx_status.go:172] unexpected error obtaining nginx status info: Get “http://127.0.0.1:10246/nginx_status”: dial tcp 127.0.0.1:10246: connect: connection refused

E0325 06:57:55.284948 7 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

[root@k8s-master01 ~]# kubectl edit deploy kubesphere-router-kubesphere-system -n kubesphere-controls-system

kubesphere开启集群网关前不能自己安装ingress-nginx吗,还有loadbalance必须是可选项内的厂商LB吗

    Feynman 我在安装kubesphere之前已经安装了 ingress-nginx, 是否需要卸载后才能安装kubesphere的nginx-ingress.或者说是什么其他原因导致无法安装的