Skip to content

NLB Annotations aren't correct #816

Open
@pbecotte

Description

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.

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions