You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a prefix-list and we want to allow the traffic only from this list, so we have used service.beta.kubernetes.io/aws-load-balancer-security-group-prefix-lists: pl-xxxxxx annotation. But this configuration is adding rules with 0.0.0.0/0 as source ranges in the security group. I can confirm that we have not reached the limit of no. of rules in a SG. Below is the configuration of our service and we are using v2.9.1 version of aws-loadbalancer-controller -
This service.beta.kubernetes.io/aws-load-balancer-security-group-prefix-lists has been supported since release v2.8.0. It should work as you are using v2.9.1.
Can you provide your controller logs and check if there is any error message ? I can reproduce it only when I added a prefix id that did not exist and got api error InvalidPrefixListID.NotFound. Can you make sure this is not happening to you ?
Bug Description
Hi Team,
We have a prefix-list and we want to allow the traffic only from this list, so we have used service.beta.kubernetes.io/aws-load-balancer-security-group-prefix-lists: pl-xxxxxx annotation. But this configuration is adding rules with 0.0.0.0/0 as source ranges in the security group. I can confirm that we have not reached the limit of no. of rules in a SG. Below is the configuration of our service and we are using v2.9.1 version of aws-loadbalancer-controller -
`apiVersion: v1
kind: Service
metadata:
annotations:
meta.helm.sh/release-name: bitbucket
meta.helm.sh/release-namespace: bitbucket
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "3600"
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: xxxxxxxxxxxxxxxxxx
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https
service.beta.kubernetes.io/aws-load-balancer-subnets: subnet-xxxxxxx,subnet-xxxxxxxxxx
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: Application=xxxxxx,Environment=dev,Name=xxxx-clb-external,Owner=xxx
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: deregistration_delay.timeout_seconds=300
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: deregistration_delay.connection_termination.enabled=true
service.beta.kubernetes.io/aws-load-balancer-attributes: load_balancing.cross_zone.enabled=true
service.beta.kubernetes.io/aws-load-balancer-security-group-prefix-lists: pl-xxxxxx
labels:
app.kubernetes.io/instance: helm
app.kubernetes.io/name: xxxxx
name: xxxxx-clb-external
namespace: bitbucket
spec:
externalTrafficPolicy: Local
ports:
port: 80
protocol: TCP
targetPort: http
port: 7999
protocol: TCP
targetPort: ssh
port: 443
protocol: TCP
targetPort: http
selector:
app.kubernetes.io/instance: xxxxx-k8s-application-helm
app.kubernetes.io/name: xxxxx
sessionAffinity: None
type: LoadBalancer`
Expected Behavior
This has to add the SG rule with source as the prefix-list
Actual Behavior
Adding 0.0.0.0/0 as source in the SG rules
Environment
The text was updated successfully, but these errors were encountered: