amazon-eks-user-guide icon indicating copy to clipboard operation
amazon-eks-user-guide copied to clipboard

NLB Annotations aren't correct

Open pbecotte opened this issue 11 months ago • 0 comments

This is the example from the docs-

service.beta.kubernetes.io/aws-load-balancer-attributes: |
  proxy_protocol.v2.enabled=true
  access_logs.s3.enabled=true
  access_logs.s3.bucket=my-bucket
  access_logs.s3.prefix=my-prefix
  load_balancing.cross_zone.enabled=true

This doesn't work at all- after all, the previous line says this annotation accepts a comma-separated list of key-value pairs for various load balancer attributes.

I tried this

      service.beta.kubernetes.io/aws-load-balancer-attributes: >-
        load_balancing.cross_zone.enabled=true,
        proxy_protocol.v2.enabled=true

which works a little better - it doesn't complain about the cross_zone entry now, but-

  • Get an error: Load balancer attribute key 'proxy_protocol.v2.enabled' is not recognized (which makes sense, its an attribute on the target group)
  • The other one isn't an error, but also doesn't actually change the setting on the load balancer.

Would be happy to fix the docs, but have no idea if/where the upstream project for the auto-mode controller is to even guess at the correct settings.

pbecotte avatar Dec 21 '24 16:12 pbecotte