创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
物理机
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
KubeSphere版本信息
例如:v2.1.1/v3.0.0。离线安装还是在线安装。在已有K8s上安装还是使用kk安装。
问题是什么
报错日志是什么,最好有截图。
截图如下:
E0514 02:42:48.133320 7 event.go:276] Unable to write event: ‘&v1.Event{TypeMeta:v1.TypeMeta{Kind:"“, APIVersion:”"}, ObjectMeta:v1.ObjectMeta{Name:“kubesphere-router-gptest-8477bc6f7-6q6fm.17cf3a2f8aec9758”, GenerateName:"", Namespace:“kubesphere-controls-system”, SelfLink:"“, UID:”“, ResourceVersion:”", Generation:0, CreationTimestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds🙁*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry(nil)}, InvolvedObject:v1.ObjectReference{Kind:“Pod”, Namespace:“kubesphere-controls-system”, Name:“kubesphere-router-gptest-8477bc6f7-6q6fm”, UID:“7147ecf9-f771-40df-98e3-1a70c153a505”, APIVersion:“v1”, ResourceVersion:“37821695”, FieldPath:""}, Reason:“RELOAD”, Message:"Error reloading NGINX: \n——————————————————————————-\nError: exit status 1\n2024/05/14 02:32:38 [warn] 4787#4787: the \“http2_max_field_size\” directive is obsolete, use the \“large_client_header_buffers\” directive instead in /tmp/nginx/nginx-cfg3180120453:144\nnginx: [warn] the \“http2_max_field_size\” directive is obsolete, use the \“large_client_header_buffers\” directive instead in /tmp/nginx/nginx-cfg3180120453:144\n2024/05/14 02:32:38 [warn] 4787#4787: the \“http2_max_header_size\” directive is obsolete, use the \“large_client_header_buffers\” directive instead in /tmp/nginx/nginx-cfg3180120453:145\nnginx: [warn] the \“http2_max_header_size\” directive is obsolete, use the \“large_client_header_buffers\” directive instead in /tmp/nginx/nginx-cfg3180120453:145\n2024/05/14 02:32:38 [warn] 4787#4787: the \“http2_max_requests\” directive is obsolete, use the \“keepalive_requests\” directive instead in /tmp/nginx/nginx-cfg3180120453:146\nnginx: [warn] the \“http2_max_requests\” directive is obsolete, use the \“keepalive_requests\” directive instead in /tmp/nginx/nginx-cfg3180120453:146\n2024/05/14 02:32:38 [emerg] 4787#4787: \“underscores_in_headers\” directive is not allowed here in /tmp/nginx/nginx-cfg3180120453:684\nnginx: [emerg] \“underscores_in_headers\” directive is not allowed here in /tmp/nginx/nginx-cfg3180120453:684\nnginx: configuration file /tmp/nginx/nginx-cfg3180120453 test failed\n\n——————————————————————————-\n", Source:v1.EventSource{Component:“nginx-ingress-controller”, Host:""}, FirstTimestamp:time.Date(2024, time.May, 14, 2, 32, 38, 920083288, time.Local), LastTimestamp:time.Date(2024, time.May, 14, 2, 32, 38, 920083288, time.Local), Count:1, Type:“Warning”, EventTime:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Series🙁*v1.EventSeries)(nil), Action:"“, Related🙁*v1.ObjectReference)(nil), ReportingController:”“, ReportingInstance:”"}’: ’can’t create an event with namespace ‘kubesphere-controls-system’ in namespace ‘gptest’'(may retry after sleeping)