Kubernetes and AWS: Set LoadBalancer to use predefined Security Group

后端 未结 4 534
[愿得一人]
[愿得一人] 2021-02-04 08:35

As the title says, I am looking for a way to force a LoadBalancer service to use a predefined security group in AWS. I do not want to have to manually edit the inbound/outbound

4条回答
  •  太阳男子
    2021-02-04 09:24

    You can not restrict kubernetes from creating new security group, but you can specify existing security groups using annotations as mentioned in the documentation:

    service.beta.kubernetes.io/aws-load-balancer-extra-security-groups: "sg-53fae93f,sg-42efd82e" -> A list of additional security groups to be added to ELB

提交回复
热议问题