Reusable KongPlugin Resources?

A common example in the documentation is something like

rate-limiting.plugin.konghq.com: |
  add-ratelimiting-to-route

Which implies (to me) that you can create a plugin configuration and attach it to multiple Ingress resources, which sounds amazing. Unfortuantely, this isn’t the case – the mapping is currently 1:1 and any attempt to attach a Plugin to multiple Ingress results in only one of them receiving it.

This was confirmed in this issue (with a bit more information):

My environment (which I don’t think is terribly uncommon) has about 50 microservices and 6 global plugins. From what I’ve been able to find, Kong Ingress does not support global plugins yet either. This means I end up with 300 KongPlugin resources for that environment (it’s actually 600 because I have a second domain that also cannot be combined). Fixing the above issue would take me from 600 custom Kong resources to 6.

My questions around this are:

  1. What should I expect for the timeline on something like the above? Any chance it’d be within a month or so? If not, I may need to hold off on moving forward for now.
  2. Is there any undocumented feature to configure global plugins in Kong? I suppose I could just configure those manually, but I read something about Kong Ingress removing manually-created resources so I’m not certain if that’s possible or not.

Thanks!

I got some clear answers to the above in the Github issue itself but leaving this for comments/discussion, and a point of reference for any interested.

Hello @JayGorrell
Please do not cross-post between Kong Nation and Github issues.

Like I answered in the Github issue:

What should I expect for the timeline on something like the above? Any chance it’d be within a month or so?

We currently are working to make this reuse possible but I’m afraid I can’t provide you a timeline for it.

Is there any undocumented feature to configure global plugins in Kong?

The ingress controller currently doesn’t allow you to configure global plugins in Kong.

My apologies – I posted over there before discovering this page and wasn’t sure which was preferred. :zipper_mouth_face:

@JayGorrell No problem. Stay tuned for new features and fixes. :slight_smile: