-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emit-translation-events
CLI flag to suppress event creation
#5252
Comments
I suggest we rename the flag to |
tl;dr from #4127 (comment) is that we should already be limited to 1 Event update per failure per 300s after an initial ramp up period. The exact rate is tunable, though documentation is sparse and the the limiter behavior varies depending on your Even emission patterns. There is a corner case at startup where, if you've let a large quantity N of broken resources accumulate, you would see N Event updates every 3s until you hit the 25 Event duplicate count before throttling starts. |
Reopen since the backport to 2.12.x and 3.0.x is not done. |
Let me backport them to other branches. |
Already backported. |
Is there an existing issue for this?
Problem Statement
Today it is not possible to suppress creation of k8s events for translation successes/failures.
Those events can be a source of load on k8s API that is higher than necessary (#4127) and can be unwanted (e.g. in an emergency where the load on the API server is impacting the cluster).
Proposed Solution
Add a config knob to disable KIC's module that creates events.
There is prior art:
update-status
https://github.com/Kong/kubernetes-ingress-controller/blob/cff127d03acf818a3865ef6d8ee016ffd1f15087/internal/manager/config.go#L229C42-L230
The idea is that we add a new flag alongside
update-status
(proposed name:emit-translation-events
) defaulting to true.Additional information
Related to #4127. #4127 is the long-term solution that, if #4127 is enabled by default, the likelihood of translation events causing trouble
emit-translation-events
flag should be way less.Acceptance Criteria
emit-translation-events
flag implemented, set as default=true, if disabled: KIC creates no events in the Kubernetes API.The text was updated successfully, but these errors were encountered: