diff --git a/helm/aws-load-balancer-controller/README.md b/helm/aws-load-balancer-controller/README.md index 6da919857..8ccf0c336 100644 --- a/helm/aws-load-balancer-controller/README.md +++ b/helm/aws-load-balancer-controller/README.md @@ -265,6 +265,7 @@ The default values set by the application itself can be confirmed [here](https:/ | `enableManageBackendSecurityGroupRules` | If enabled, controller will manage security group rules | `false` | | `backendSecurityGroup` | Backend security group to use instead of auto created one if the feature is enabled | `` | | `disableRestrictedSecurityGroupRules` | If disabled, controller will not specify port range restriction in the backend security group rules | `false` | +| `maxTargetsPerTargetGroup` | Specifies the maximum number of targets that the controller will attempt to add to a given ELB instance. If unset, no limits are applied. | `0` | | `objectSelector.matchExpressions` | Webhook configuration to select specific pods by specifying the expression to be matched | None | | `objectSelector.matchLabels` | Webhook configuration to select specific pods by specifying the key value label pair to be matched | None | | `serviceMonitor.enabled` | Specifies whether a service monitor should be created, requires the ServiceMonitor CRD to be installed | `false` | diff --git a/helm/aws-load-balancer-controller/templates/deployment.yaml b/helm/aws-load-balancer-controller/templates/deployment.yaml index 42e6db518..0574a7766 100644 --- a/helm/aws-load-balancer-controller/templates/deployment.yaml +++ b/helm/aws-load-balancer-controller/templates/deployment.yaml @@ -181,6 +181,9 @@ spec: {{- if .Values.vpcTags }} - --aws-vpc-tags={{ include "aws-load-balancer-controller.convertMapToCsv" .Values.vpcTags | trimSuffix "," }} {{- end }} + {{- if .Values.maxTargetsPerTargetGroup }} + - --max-targets-per-target-group={{ .Values.maxTargetsPerTargetGroup }} + {{- end }} {{- if or .Values.env .Values.envSecretName }} env: {{- if .Values.env}} diff --git a/helm/aws-load-balancer-controller/test.yaml b/helm/aws-load-balancer-controller/test.yaml index ae96b151d..76eada796 100644 --- a/helm/aws-load-balancer-controller/test.yaml +++ b/helm/aws-load-balancer-controller/test.yaml @@ -292,6 +292,9 @@ backendSecurityGroup: # disableRestrictedSecurityGroupRules specifies whether to disable creating port-range restricted security group rules for traffic disableRestrictedSecurityGroupRules: +# maxTargetsPerTargetGroup specifies the maximum number of targets that the controller will attempt to add to a given ELB instance +maxTargetsPerTargetGroup: + # controllerConfig specifies controller configuration controllerConfig: # featureGates set of key: value pairs that describe AWS load balance controller features @@ -356,4 +359,4 @@ serviceMutatorWebhookConfig: podMutatorWebhookConfig: # whether or not to fail the pod creation if the webhook fails - failurePolicy: Ignore \ No newline at end of file + failurePolicy: Ignore diff --git a/helm/aws-load-balancer-controller/values.yaml b/helm/aws-load-balancer-controller/values.yaml index 4cc86f0ac..c1d2be661 100644 --- a/helm/aws-load-balancer-controller/values.yaml +++ b/helm/aws-load-balancer-controller/values.yaml @@ -371,6 +371,9 @@ backendSecurityGroup: # disableRestrictedSecurityGroupRules specifies whether to disable creating port-range restricted security group rules for traffic disableRestrictedSecurityGroupRules: +# maxTargetsPerTargetGroup specifies the maximum number of targets that the controller will attempt to add to a given ELB instance +maxTargetsPerTargetGroup: + # controllerConfig specifies controller configuration controllerConfig: # featureGates set of key: value pairs that describe AWS load balance controller features