创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:Centos7.9/Ubuntu18.04,4C/8G
Kubernetes版本信息
1.23.1
KubeSphere版本信息
例如:v3.2.1。在线安装。在已有K8s上安装
问题是什么
[root@k8s-master01 ~]# kubectl logs kubesphere-router-kubesphere-system-6d78f95c94-wnnbb -n kubesphere-controls-system
---—————————————————————————-
NGINX Ingress controller
Release: v0.48.1
Build: 30809c066cd027079cbb32dccc8a101d6fbffdcb
Repository: https://github.com/kubernetes/ingress-nginx
nginx version: nginx/1.20.1
---—————————————————————————-
I0329 05:11:15.152916 8 flags.go:211] “Watching for Ingress” class=“nginx”
W0329 05:11:15.153091 8 flags.go:216] Ingresses with an empty class will also be processed by this Ingress controller
W0329 05:11:15.154488 8 client_config.go:614] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
I0329 05:11:15.155430 8 main.go:241] “Creating API client” host=“https://10.96.0.1:443”
I0329 05:11:15.177600 8 main.go:285] “Running in Kubernetes cluster” major=“1” minor=“23” git=“v1.23.1” state=“clean” commit=“86ec240af8cbd1b60bcc4c03c20da9b98005b92e” platform=“linux/amd64”
I0329 05:11:15.550530 8 main.go:105] “SSL fake certificate created” file=“/etc/ingress-controller/ssl/default-fake-certificate.pem”
I0329 05:11:15.556484 8 main.go:115] “Enabling new Ingress features available since Kubernetes v1.18”
W0329 05:11:15.558331 8 main.go:127] No IngressClass resource with name nginx found. Only annotation will be used.
I0329 05:11:15.611144 8 nginx.go:254] “Starting NGINX Ingress controller”
I0329 05:11:15.641491 8 event.go:282] Event(v1.ObjectReference{Kind:“ConfigMap”, Namespace:“kubesphere-controls-system”, Name:“kubesphere-router-kubesphere-system”, UID:“51b63b67-6334-40af-87cf-eaff8b865c28”, APIVersion:“v1”, ResourceVersion:“24312551”, FieldPath:""}): type: ‘Normal’ reason: ‘CREATE’ ConfigMap kubesphere-controls-system/kubesphere-router-kubesphere-system
E0329 05:11:16.716709 8 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
E0329 05:11:17.796075 8 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
E0329 05:11:20.290298 8 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/29 05:11:20 Get “http://127.0.0.1:10246/nginx_status”: dial tcp 127.0.0.1:10246: connect: connection refused
W0329 05:11:20.589975 8 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