英文:
Nginx Ingress Controller - Failed to watch *v1.EndpointSlice:
问题
我已经在EKS集群v1.20.15-eks中使用来自https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx/版本4.4.2的Helm图表部署了Nginx Ingress Controller。
控制器已经成功部署,但在创建Ingress对象时,我遇到了以下错误。
W0206 09:46:11.909381 8 reflector.go:424] k8s.io/client-go@v0.25.3/tools/cache/reflector.go:169: failed to list *v1.EndpointSlice: the server could not find the requested resource
E0206 09:46:11.909410 8 reflector.go:140] k8s.io/client-go@v0.25.3/tools/cache/reflector.go:169: Failed to watch *v1.EndpointSlice: failed to list *v1.EndpointSlice: the server could not find the requested resource
kubectl版本是
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.0", GitCommit:"af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38", GitTreeState:"clean", BuildDate:"2020-12-08T17:59:43Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.15-eks-fb459a0", GitCommit:"165a4903196b688886b456054e6a5d72ba8cddf4", GitTreeState:"clean", BuildDate:"2022-10-24T20:31:58Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
有人能帮我解决这个问题吗?在此先感谢。
英文:
I have deployed Nginx Ingress Controller in EKS cluster v1.20.15-eks using helm chart from https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx/ version 4.4.2
The controller is deployed successfully but when creating Ingress Object I am getting below error.
W0206 09:46:11.909381 8 reflector.go:424] k8s.io/client-go@v0.25.3/tools/cache/reflector.go:169: failed to list *v1.EndpointSlice: the server could not find the requested resource
E0206 09:46:11.909410 8 reflector.go:140] k8s.io/client-go@v0.25.3/tools/cache/reflector.go:169: Failed to watch *v1.EndpointSlice: failed to list *v1.EndpointSlice: the server could not find the requested resource
kubectl version is
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.0", GitCommit:"af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38", GitTreeState:"clean", BuildDate:"2020-12-08T17:59:43Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.15-eks-fb459a0", GitCommit:"165a4903196b688886b456054e6a5d72ba8cddf4", GitTreeState:"clean", BuildDate:"2022-10-24T20:31:58Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
Can anyone help me with this. Thank you in advance.
答案1
得分: 3
chart version 4.4.2 的应用版本是 1.5.1。
nginx 版本 1.5.1 仅支持 Kubernetes 版本 1.25、1.24、1.23。
对于 Kubernetes 版本 v1.20,最新支持的版本是 v1.3.1。
v1.3.1 的图表版本是 v4.2.5。
你遇到的错误是由于 nginx 无法找到 v1.EndpointSlice,因为 EndpointSlice 在 Kubernetes 版本 v1.21 上发布,可以在这里找到相关信息。在以前的版本中,它会在 alpha/beta 上运行,而不是 v1。
请参考这里的表格。
英文:
chart version 4.4.2 has the application version of 1.5.1.
Version 1.5.1 of nginx only supports kubernetes versions of 1.25, 1.24, 1.23.
For kubernetes v1.20 the latest supported version was v1.3.1.
The chart version for v1.3.1 is v4.2.5.
The error you are facing, is due to nginx not finding v1.EndpointSlice, since the EndpointSlice was GA on k8s v1.21 as can be seen here. In previous versions it would be running on alpha/beta not v1.
Please refer to the table here.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论