【问题标题】:Nginx Ingress Controller - Failed to watch *v1.EndpointSlice:Nginx 入口控制器 - 无法观看 *v1.EndpointSlice:
【发布时间】:2023-02-06 19:06:53
【问题描述】:

我已经使用 https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx/ 4.4.2 版的 helm chart 在 EKS 集群 v1.20.15-eks 中部署了 Nginx Ingress Controller

控制器已成功部署,但在创建入口对象时出现以下错误。

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"}

谁能帮我这个。先感谢您。

【问题讨论】:

    标签: kubernetes nginx kubernetes-ingress amazon-eks


    【解决方案1】:

    图表版本 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 在 k8s v1.21 上是 GA,如here 所示。在以前的版本中,它将在 alpha/beta 而不是 v1 上运行。

    请参考table here

    【讨论】:

      猜你喜欢
      • 2021-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-29
      相关资源
      最近更新 更多