Skip to content

Commit

Permalink
Add option to pass api-rate-limit via Helm values
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Ungureanu <vladu@[email protected]>
  • Loading branch information
ungureanuvladvictor authored and sayboras committed Sep 22, 2023
1 parent 5b55b65 commit d6caa21
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/helm-values.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions install/kubernetes/cilium/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions install/kubernetes/cilium/templates/cilium-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,10 @@ data:
limit-ipam-api-qps: {{ .Values.ipam.operator.externalAPILimitQPS | quote }}
{{- end }}

{{- if .Values.apiRateLimit }}
api-rate-limit: {{ .Values.apiRateLimit | quote }}
{{- end }}

{{- if .Values.enableCnpStatusUpdates }}
disable-cnp-status-updates: "false"
{{- else if (eq $defaultEnableCnpStatusUpdates "false") }}
Expand Down
3 changes: 3 additions & 0 deletions install/kubernetes/cilium/values.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions install/kubernetes/cilium/values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1569,6 +1569,9 @@ ipam:
# @default -- `4.0`
externalAPILimitQPS: ~

# -- The api-rate-limit option can be used to overwrite individual settings of the default configuration for rate limiting calls to the Cilium Agent API
apiRateLimit: ~

# -- Configure the eBPF-based ip-masq-agent
ipMasqAgent:
enabled: false
Expand Down

0 comments on commit d6caa21

Please sign in to comment.