如何解决在aws上使用k8s的静态IP到LoadBalancer服务分配ID
表示使用service.beta.kubernetes.io/aws-load-balancer-eip-allocations将AWS EIP分配给新创建的Network Load Balancer(https://github.com/kubernetes/kubernetes/pull/69263)。但是,如何获取AWS分配ID?
在unable to give static ip to nlb,
kind: Service
apiVersion: v1
metadata:
name: ingress-nginx
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb
service.beta.kubernetes.io/aws-load-balancer-eip-allocations: "eipalloc-
07e3afcd4b7b5d644,eipalloc-0d9cb0154be5ab55d,eipalloc-0e4e5ec3df81aa3ea"
service.beta.kubernetes.io/aws-load-balancer-subnets: "subnet-
061f4a497621a7179,subnet-001c2e5df9cc93960"
spec:
type: LoadBalancer
selector:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
如何获取这些eipalloc ID?
解决方法
我可能会误解您的问题,但是我认为您只是在AWS中创建Elastic IP's,然后在控制台中或通过awscli通过describing them获取其分配ID。
AllocationId
[Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.
Type: String
Required: No
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。