Skip to content

Commit 7a470f9

Browse files
authored
Feature Support --load-balancer-class in Helm Chart(#3629) (#3647)
* Feature Support --load-balancer-class in Helm Chart(#3629) * Fix deployment.yaml flag defaultLoadBalancerClass to --load-balancer-class
1 parent 97e9bd1 commit 7a470f9

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

helm/aws-load-balancer-controller/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,4 @@ The default values set by the application itself can be confirmed [here](https:/
269269
| `enableServiceMutatorWebhook` | If `false`, disable the Service Mutator webhook which makes all new services of type LoadBalancer reconciled by the lb controller | `true` |
270270
| `autoscaling` | If `autoscaling.enabled=true`, enable the HPA on the controller mainly to survive load induced failure by the calls to the `aws-load-balancer-webhook-service`. Please keep in mind that the controller pods have `priorityClassName: system-cluster-critical`, enabling HPA may lead to the eviction of other low-priority pods in the node | `false` |
271271
| `serviceTargetENISGTags` | set of `key=value` pairs of AWS tags in addition to cluster name for finding the target ENI security group to which to add inbound rules from NLBs | None |
272+
| `loadBalancerClass` | Sets the AWS load balancer type to be used when the Kubernetes service requests an external load balancer | `service.k8s.aws/nlb` |

helm/aws-load-balancer-controller/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ spec:
162162
{{- if .Values.certDiscovery.allowedCertificateAuthorityARNs }}
163163
- --allowed-certificate-authority-arns={{ .Values.certDiscovery.allowedCertificateAuthorityARNs }}
164164
{{- end }}
165+
{{- if .Values.loadBalancerClass }}
166+
- --load-balancer-class={{ .Values.loadBalancerClass }}
167+
{{- end }}
165168
{{- if or .Values.env .Values.envSecretName }}
166169
env:
167170
{{- if .Values.env}}

helm/aws-load-balancer-controller/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,6 @@ enableServiceMutatorWebhook: true
391391

392392
# serviceTargetENISGTags specifies AWS tags, in addition to the cluster tags, for finding the target ENI SG to which to add inbound rules from NLBs.
393393
serviceTargetENISGTags:
394+
395+
# Specifies the class of load balancer to use for services. This affects how services are provisioned if type LoadBalancer is used (default service.k8s.aws/nlb)
396+
loadBalancerClass:

0 commit comments

Comments
 (0)