Skip to content
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

[Kong Ingress Controller Chart] High Load on k8s API with KongUpstreamPolicy and Multiple Ingress Controllers #13268

Closed
1 task done
kirillfomichev opened this issue Jun 21, 2024 · 1 comment
Labels
area/ingress-controller Issues where Kong is running as a Kubernetes Ingress Controller area/kubernetes Issues where Kong is running on top of Kubernetes pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...

Comments

@kirillfomichev
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

Kong (version 3.6), KIC (version 3.2)

Current Behavior

When using UpstreamPolicy in a Kubernetes cluster with two ingress controllers, there is a cyclic configuration overwrite. Both ingress controllers compete for the UpstreamPolicy resource, leading to high load on the k8s API.

Expected Behavior

The ingress controllers should handle the UpstreamPolicy resource without cyclic overwrites, avoiding unnecessary load on the k8s API.

Steps To Reproduce

  1. Set up a Kubernetes cluster
  2. Deploy two ingress controllers via helm chart.
  3. Set up debug-level
  4. Create a CRD UpstreamPolicy for the ingress controllers.
  5. Observe the cyclic configuration overwrite and high load on the k8s API.

Anything else?

<KONG_PREFIX>/logs/error.log
controllers.KongUpstreamPolicy Reconciling resource {"KongV1beta1KongUpstreamPolicy": {"name":"sticky-session","namespace":"sso"}, "v": 1, "namespace": "sso", "name": "sticky-session-sso"}

@jschmid1 jschmid1 added area/kubernetes Issues where Kong is running on top of Kubernetes area/ingress-controller Issues where Kong is running as a Kubernetes Ingress Controller labels Jun 21, 2024
@hanshuebner
Copy link
Contributor

This seems to be an issue that would better be filed in https://github.com/Kong/kubernetes-ingress-controller - @kirillfomichev Do you think this is a Gateway issue? If not, please re-file in the KIC repository and close this issue. Thank you!

@hanshuebner hanshuebner added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ingress-controller Issues where Kong is running as a Kubernetes Ingress Controller area/kubernetes Issues where Kong is running on top of Kubernetes pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...
Projects
None yet
Development

No branches or pull requests

3 participants