创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
例如:物理机,Ubuntu18.04,8C/32G

Kubernetes版本信息
kubectl version

Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.1", GitCommit:"206bcadf021e76c27513500ca24182692aabd17e", GitTreeState:"clean", BuildDate:"2020-09-09T11:26:42Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.1", GitCommit:"206bcadf021e76c27513500ca24182692aabd17e", GitTreeState:"clean", BuildDate:"2020-09-09T11:18:22Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}

容器运行时
$ docker version

Client: Docker Engine - Community

Version: 19.03.2

API version: 1.40

Go version: go1.12.8

Git commit: 6a30dfca03

Built: Thu Aug 29 05:26:30 2019

OS/Arch: linux/amd64

Experimental: false

Server: Docker Engine - Community

Engine:

Version: 19.03.2

API version: 1.40 (minimum version 1.12)

Go version: go1.12.8

Git commit: 6a30dfca03

Built: Thu Aug 29 05:32:56 2019

OS/Arch: linux/amd64

Experimental: false

containerd:

Version: v1.2.6

GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb

runc:

Version: 1.0.0-rc8

GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f

docker-init:

Version: 0.18.0

GitCommit: fec3683

KubeSphere版本信息
例如:v3.2.0。在线安装。已有K8s上安装。

问题是什么
kubesphere/nginx-ingress-controller:v0.48.1@sha256:e9fb216ace49dfa4a5983b183067e97496e7a8b307d2093f4278cd550c303899 不能正常启动。

日志:

-------------------------------------------------------------------------------

E1201 01:18:48.087948 6 queue.go:130] "requeuing" err="\n-------------------------------------------------------------------------------\nError: exit status 1\n2021/12/01 01:18:48 [warn] 42#42: the \"http2_max_field_size\" directive is obsolete, use the \"large_client_header_buffers\" directive instead in /tmp/nginx-cfg808506044:143\nnginx: [warn] the \"http2_max_field_size\" directive is obsolete, use the \"large_client_header_buffers\" directive instead in /tmp/nginx-cfg808506044:143\n2021/12/01 01:18:48 [warn] 42#42: the \"http2_max_header_size\" directive is obsolete, use the \"large_client_header_buffers\" directive instead in /tmp/nginx-cfg808506044:144\nnginx: [warn] the \"http2_max_header_size\" directive is obsolete, use the \"large_client_header_buffers\" directive instead in /tmp/nginx-cfg808506044:144\n2021/12/01 01:18:48 [warn] 42#42: the \"http2_max_requests\" directive is obsolete, use the \"keepalive_requests\" directive instead in /tmp/nginx-cfg808506044:145\nnginx: [warn] the \"http2_max_requests\" directive is obsolete, use the \"keepalive_requests\" directive instead in /tmp/nginx-cfg808506044:145\nnginx: the configuration file /tmp/nginx-cfg808506044 syntax is ok\n2021/12/01 01:18:48 [emerg] 42#42: bind() to 0.0.0.0:80 failed (13: Permission denied)\nnginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)\nnginx: configuration file /tmp/nginx-cfg808506044 test failed\n\n-------------------------------------------------------------------------------\n" key="pl/ratings"

I1201 01:18:48.087980 6 event.go:282] Event(v1.ObjectReference{Kind:"Pod", Namespace:"kubesphere-controls-system", Name:"kubesphere-router-pl-69cb6cfdbf-8g5x5", UID:"cf253dc2-d0ad-4735-ab8b-42b1b62d8aef", APIVersion:"v1", ResourceVersion:"6189147", FieldPath:""}): type: 'Warning' reason: 'RELOAD' Error reloading NGINX:

-------------------------------------------------------------------------------

Error: exit status 1

2021/12/01 01:18:48 [warn] 42#42: the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx-cfg808506044:143

nginx: [warn] the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx-cfg808506044:143

2021/12/01 01:18:48 [warn] 42#42: the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx-cfg808506044:144

nginx: [warn] the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx-cfg808506044:144

2021/12/01 01:18:48 [warn] 42#42: the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /tmp/nginx-cfg808506044:145

nginx: [warn] the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /tmp/nginx-cfg808506044:145

nginx: the configuration file /tmp/nginx-cfg808506044 syntax is ok

2021/12/01 01:18:48 [emerg] 42#42: bind() to 0.0.0.0:80 failed (13: Permission denied)

nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

nginx: configuration file /tmp/nginx-cfg808506044 test failed

补充:创建k8s集群的是普通用户而非root用户。使用Dockerfile,更改镜像内用户为root可以使用,3.2更改后仍不能使用

10 个月 后

检查一下是不是项目网关的路由地址重复了……大坑