-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Kubernetes now supports .spec.loadBalancerClass
on Services as of 1.24: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class.
And AWS recommends the use of this field rather than using service annotations: "EKS Auto Mode handles Network Load Balancer provisioning by default for all services of type LoadBalancer - no additional controller installation or configuration is required. The loadBalancerClass: eks.amazonaws.com/nlb specification is automatically set as the cluster default, streamlining the deployment process while maintaining compatibility with existing Kubernetes workloads."
https://docs.aws.amazon.com/eks/latest/userguide/auto-configure-nlb.html
I believe backwards compatability is still supported in form of annotations and clusters will add this attribute automatically in many cases so this should be considered low priority unless it becomes a blocker for someone.