入口失败的构建模型由于可能无法自动发现子网:无法发现至少一个子网
我遇到了一个错误:“由于无法自动发现子网,入口失败的构建模型:在EKS中部署入口时无法发现至少一个子网”。
已经采取的步骤:
- 群集名称在分发文件
- 下方的部署文件中是正确的,在Ingress-resource文件注释中正在使用
:
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/target-type: ip
kubernetes.io/ingress.class: alb
kubernetes.io/role/internal-elb: 1
alb.ingress.kubernetes.io/subnets: subnet-xxxx, subnet-yyy, subnet-zzz
kubernetes.io/cluster/<ClusterName>: owned ---> (I am using correct cluster name)
关键点: 我正在使用EKS中的私有子网,并使用适当的标签创建子网。
I am getting an error "ingress Failed build model due to couldn't auto-discover subnets: unable to discover at least one subnet" while deploying ingress in EKS.
Steps already taken:
- Cluster Name is correct in Deployment file
- below annotation is am using in Ingress-Resource file
annotations:
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/target-type: ip
kubernetes.io/ingress.class: alb
kubernetes.io/role/internal-elb: 1
alb.ingress.kubernetes.io/subnets: subnet-xxxx, subnet-yyy, subnet-zzz
kubernetes.io/cluster/<ClusterName>: owned ---> (I am using correct cluster name)
Key point:
I am using private subnet in EKS, Subnets were separately created with proper Tags.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以上是标签,而不是注释用法。尝试使用
kubernetes.io/role/role/internal-elb:1
andkubernetes.io/cluster/&clusterm&clustername>:拥有
;以便LB控制器可以发现它们。The above are tags and not for annotation usage. Try tag the 3 subnets in your question on the AWS console with
kubernetes.io/role/internal-elb: 1
andkubernetes.io/cluster/<ClusterName>: owned
; so that the LB controller can discover them.