Skip to content

Commit 2e51dc0

Browse files
authored
Added, registered aws-lb-security-groups annotation (#43009)
Signed-off-by: Ritikaa96 <[email protected]>
1 parent edd262d commit 2e51dc0

File tree

1 file changed

+20
-0
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+20
-0
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,26 @@ uses this annotation.
18201820
See [annotations](https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/service/annotations/)
18211821
in the AWS load balancer controller documentation.
18221822

1823+
### service.beta.kubernetes.io/aws-load-balancer-security-groups (deprecated) {#service-beta-kubernetes-io-aws-load-balancer-security-groups}
1824+
1825+
Example: `service.beta.kubernetes.io/aws-load-balancer-security-groups: "sg-53fae93f,sg-8725gr62r"`
1826+
1827+
Used on: Service
1828+
1829+
The AWS load balancer controller uses this annotation to specify a comma seperated list
1830+
of security groups you want to attach to an AWS load balancer. Both name and ID of security
1831+
are supported where name matches a `Name` tag, not the `groupName` attribute.
1832+
1833+
When this annotation is added to a Service, the load-balancer controller attaches the security groups
1834+
referenced by the annotation to the load balancer. If you omit this annotation, the AWS load balancer
1835+
controller automatically creates a new security group and attaches it to the load balancer.
1836+
1837+
{{< note >}}
1838+
Kubernetes v1.27 and later do not directly set or read this annotation. However, the AWS
1839+
load balancer controller (part of the Kubernetes project) does still use the
1840+
`service.beta.kubernetes.io/aws-load-balancer-security-groups` annotation.
1841+
{{< /note >}}
1842+
18231843
### service.beta.kubernetes.io/load-balancer-source-ranges (deprecated) {#service-beta-kubernetes-io-load-balancer-source-ranges}
18241844

18251845
Example: `service.beta.kubernetes.io/load-balancer-source-ranges: "192.0.2.0/25"`

0 commit comments

Comments
 (0)