- 已编辑
创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
虚拟机,CentOS Linux release 7.6.1810 (Core),4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:41:28Z", GoVersion:"go1.16.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:35:25Z", GoVersion:"go1.16.9", Compiler:"gc", Platform:"linux/amd64"}
容器运行时
[root@k8s ~]# crictl version
W1224 17:22:23.604059 85787 util_unix.go:103] Using "/run/containerd/containerd.sock" as endpoint is deprecated, please consider using full url format "unix:///run/containerd/containerd.sock".
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: 1.4.3
RuntimeApiVersion: v1alpha2
KubeSphere版本信息
v3.2.1。在线安装。在已有K8s上安装。
问题是什么
kubesphere-router-p1报错日志
2021-12-24T17:24:54.801287963+08:00 -------------------------------------------------------------------------------
2021-12-24T17:24:54.801347903+08:00 NGINX Ingress controller
2021-12-24T17:24:54.801355907+08:00 Release: v0.48.1
2021-12-24T17:24:54.801360429+08:00 Build: 30809c066cd027079cbb32dccc8a101d6fbffdcb
2021-12-24T17:24:54.801367415+08:00 Repository: https://github.com/kubernetes/ingress-nginx
2021-12-24T17:24:54.801372765+08:00 nginx version: nginx/1.20.1
2021-12-24T17:24:54.801377401+08:00
2021-12-24T17:24:54.801383478+08:00 -------------------------------------------------------------------------------
2021-12-24T17:24:54.801387547+08:00
2021-12-24T17:24:54.801446275+08:00 I1224 09:24:54.800687 7 flags.go:211] "Watching for Ingress" class="nginx"
2021-12-24T17:24:54.801459188+08:00 W1224 09:24:54.800783 7 flags.go:216] Ingresses with an empty class will also be processed by this Ingress controller
2021-12-24T17:24:54.801909232+08:00 W1224 09:24:54.801454 7 client_config.go:614] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
2021-12-24T17:24:54.802227993+08:00 I1224 09:24:54.801920 7 main.go:241] "Creating API client" host="https://10.96.0.1:443"
2021-12-24T17:24:54.819973780+08:00 I1224 09:24:54.819364 7 main.go:285] "Running in Kubernetes cluster" major="1" minor="22" git="v1.22.3" state="clean" commit="c92036820499fedefec0f847e2054d824aea6cd1" platform="linux/amd64"
2021-12-24T17:24:55.534047130+08:00 I1224 09:24:55.533668 7 main.go:105] "SSL fake certificate created" file="/etc/ingress-controller/ssl/default-fake-certificate.pem"
2021-12-24T17:24:55.538226484+08:00 I1224 09:24:55.537908 7 main.go:115] "Enabling new Ingress features available since Kubernetes v1.18"
2021-12-24T17:24:55.541297553+08:00 W1224 09:24:55.541138 7 main.go:127] No IngressClass resource with name nginx found. Only annotation will be used.
2021-12-24T17:24:55.610672843+08:00 I1224 09:24:55.610398 7 nginx.go:254] "Starting NGINX Ingress controller"
2021-12-24T17:24:56.721609860+08:00 E1224 09:24:56.721081 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
2021-12-24T17:24:57.636113069+08:00 E1224 09:24:57.635585 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
2021-12-24T17:25:00.460472544+08:00 E1224 09:25:00.459783 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
2021-12-24T17:25:05.749561387+08:00 E1224 09:25:05.749045 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
2021-12-24T17:25:16.762212014+08:00 E1224 09:25:16.761833 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