Skip to content

Commit dca6a22

Browse files
M00nF1shTimothy-Dougherty
authored andcommitted
add HELM support for aws-api-throttle (kubernetes-sigs#2745)
1 parent 84b4d08 commit dca6a22

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ The default values set by the application itself can be confirmed [here](https:/
197197
| `ingressClassParams.spec` | IngressClassParams defined ingress specifications | {} |
198198
| `region` | The AWS region for the kubernetes cluster | None |
199199
| `vpcId` | The VPC ID for the Kubernetes cluster | None |
200+
| `awsApiEndpoints` | Custom AWS API Endpoints | None |
201+
| `awsApiThrottle` | Custom AWS API throttle settings | None |
200202
| `awsMaxRetries` | Maximum retries for AWS APIs | None |
201203
| `enablePodReadinessGateInject` | If enabled, targetHealth readiness gate will get injected to the pod spec for the matching endpoint pods | None |
202204
| `enableShield` | Enable Shield addon for ALB | None |

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ spec:
7171
{{- if .Values.awsApiEndpoints }}
7272
- --aws-api-endpoints={{ .Values.awsApiEndpoints }}
7373
{{- end }}
74+
{{- if .Values.awsApiThrottle }}
75+
- --aws-api-throttle={{ join "," .Values.awsApiThrottle }}
76+
{{- end }}
7477
{{- if .Values.awsMaxRetries }}
7578
- --aws-max-retries={{ .Values.awsMaxRetries }}
7679
{{- end }}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,16 @@ vpcId:
137137
# Custom AWS API Endpoints (serviceID1=URL1,serviceID2=URL2)
138138
awsApiEndpoints:
139139

140+
# awsApiThrottle specifies custom AWS API throttle settings (serviceID1:operationRegex1=rate:burst,serviceID2:operationRegex2=rate:burst)
141+
# example: --set awsApiThrottle="{Elastic Load Balancing v2:RegisterTargets|DeregisterTargets=4:20,Elastic Load Balancing v2:.*=10:40}"
142+
awsApiThrottle:
143+
140144
# Maximum retries for AWS APIs (default 10)
141145
awsMaxRetries:
142146

147+
148+
149+
143150
# If enabled, targetHealth readiness gate will get injected to the pod spec for the matching endpoint pods (default true)
144151
enablePodReadinessGateInject:
145152

0 commit comments

Comments
 (0)