繁体   English   中英

nginx 入口 controller 类型 nlb 与 static Z957B527BCFBAD2E80F58D2068ZNotFound 错误“AllocationIdFound”14358D2068ZNotFound 错误

[英]nginx ingress controller type nlb with static ip giving error "AllocationIdNotFound"

I am creating nginx ingress controller of type nlb with static ips, but for static ips I am getting this error AllocationIdNotFound . 尽管此分配 id 是有效的,并且具有此 id 的 eip 存在于同一区域中。 这是我与 nginx 入口 controller 服务一起使用的注释

annotations:
      service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
      service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
      service.beta.kubernetes.io/aws-load-balancer-type: nlb
      service.beta.kubernetes.io/aws-load-balancer-subnets: "subnet-xxxxxxxxxx, subnet-xxxxxxxxxx"
      service.beta.kubernetes.io/aws-load-balancer-eip-allocations: "eipalloc-xxxxxxxxxx, eipalloc-xxxxxxxxxx"

如果我评论service.beta.kubernetes.io/aws-load-balancer-eip-allocations注释,负载均衡器会成功创建但没有 eips。

我在这里做错了什么?

您需要通过 cli 或控制台手动创建 eips,并将分配 id 添加为注释中的逗号分隔,它将被创建。 确保具有与可用区相同数量的子网和 eips。

你没有做错什么,我刚刚遇到了同样的问题。

服务解释service.beta.kubernetes.io/aws-load-balancer-eip-allocations注释的方式似乎存在错误。 如果删除逗号后的空格,它应该可以工作。

尝试这个:

annotations:
      service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
      service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
      service.beta.kubernetes.io/aws-load-balancer-type: nlb
      service.beta.kubernetes.io/aws-load-balancer-subnets: "subnet-xxxxxxxxxx, subnet-xxxxxxxxxx"
      service.beta.kubernetes.io/aws-load-balancer-eip-allocations: "eipalloc-xxxxxxxxxx,eipalloc-xxxxxxxxxx"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM