M H*_*zaq 5 nlb amazon-web-services kubernetes-ingress amazon-eks nginx-ingress
我正在使用静态 ip 创建 nlb 类型的 nginx 入口控制器,但对于静态 ip,我收到此错误AllocationIdNotFound。虽然这个分配id是有效的,并且具有这个id的eip存在于同一区域中。以下是我在 nginx 入口控制器服务中使用的注释
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"
Run Code Online (Sandbox Code Playgroud)
如果我注释service.beta.kubernetes.io/aws-load-balancer-eip-allocations注释,负载均衡器将成功创建,但没有 eip。
我在这里做错了什么?
你没有做错什么,我刚刚遇到了同样的问题。
服务解释注释的方式似乎存在错误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"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1439 次 |
| 最近记录: |