AWS EKS - 协调器错误无法自动发现子网

AWS EKS - Reconciler error couldn't auto-discover subnets

我已经在 aws eks 中部署了节点应用程序,直到今天一切正常。当我今天部署最新版本时突然出现以下错误。

无法自动发现子网:UnauthorizedOperation:您无权执行此操作

{"level":"error","ts":1622476232.9828672,"logger":"controller","msg":"Reconciler error","controller":"ingress","name":"ingress-srv","namespace":"default","error":"couldn't auto-discover subnets: UnauthorizedOperation: You are not authorized to perform this operation.\n\tstatus code: 403, request id: 0a2968bf-62c2-4a29-a41a-e5defc135e3f"}

这是入口 yaml。

kind: Ingress
metadata:
  name: ingress-srv
spec:
  rules:
  - http:
      paths:
      - backend:
          serviceName: rabbitmq
          servicePort: 15672
        path: /api/v1/rabbitmq/*
        pathType: Prefix
      - backend:
          serviceName: srv-auth
          servicePort: 4000
        path: /api/v1/users/*
        pathType: Prefix

这是部署 yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: srv-auth-depl
spec:
  replicas: 1
  selector:
    matchLabels:
      app: srv-auth
  template:
    metadata:
      labels:
        app: srv-auth
    spec:
      containers:
        - name: srv-auth
          image: srv-auth //downloadable image
---
apiVersion: v1
kind: Service
metadata:
  name: srv-auth
spec:
  selector:
    app: srv-auth
  ports:
    - name: srv-auth
      protocol: TCP
      port: 4000
      targetPort: 4000

而且我在Whosebug中发现了相关问题,但并没有解决我的问题

现在花了将近 2 天..

在我的案例中,我的策略 json 是 2.1.3,我安装了控制器 v2.2.0

也许这有帮助?