-
Dose anyone know in Kong Kubernetes Ingress Controller it is possible to apply rate-limit plugin on a combination of consumer and k8 service? seems like below document says it's already support, but i test failed, when apply both consumer and service, it will always covered by the last policy. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi. How do you configure the plugins? Could you try to send a request to admin API "/plugins" and share the result? |
Beta Was this translation helpful? Give feedback.
-
cc @kong/team-k8s |
Beta Was this translation helpful? Give feedback.
-
This works as expected for me. With resources.yaml the controller creates config.yaml. There are two rate-limiting plugins, each attached to a service/consumer combination. Sending a request to a service with the consumer attached to that service's plugin will apply the plugin limit. Sending a request from the other consumer will not apply the limit:
We'd need to see your configuration and test requests to diagnose further, but my best guess is that you've got another plugin defined on that service elsewhere with limits similar to one of your consumer-specific plugins. |
Beta Was this translation helpful? Give feedback.
-
It turns out my ingress controller version is too low, so it's not support the combination of consumer and K8 service. So i think we can end this discussion~ |
Beta Was this translation helpful? Give feedback.
It turns out my ingress controller version is too low, so it's not support the combination of consumer and K8 service.
So i think we can end this discussion~