Comments (5)
KongClusterPlugin can be used in two ways:
- With the label
global: "true"
, in which case it will be applied globally for all ingresses. - Without the label
global: "true"
, in which case you must annotate your ingresses to have the plugin applied.
Additionally, KongPlugin is a namespaced resource, so they can only be applied to ingresses in the same namespace. KongClusterPlugin is not namespaced and can be used by any ingress in any namespace.
I hope that clears things up, let me know if you still have more questions.
from kong.
@randmonkey Could you please take a look? I'm not familiar with KIC.
from kong.
You've set the label global: "true"
which will make the plugin a global plugin instead of scoped to route, service, etc. Remove the global: "true"
label and it should work how you want.
from kong.
@brentos I understand your comment, but if I have the same configuration (the same set of ips) and I want to add this plugin to several ingress/services in different namespaces, do I have to duplicate the plugin code for each namespace? I thought a global plugin was just a plugin available to all NS, but I still need to add it to the component(ingress, service, etc) I want to use.
from kong.
Thank you very much @brentos, I was confused about the concept of KongClusterPlugin
and the global
flag. Now it's very clear
from kong.
Related Issues (20)
- Can't start postgresql 16 over tls HOT 8
- reference resolving issue HOT 3
- How to add official support for s390x arch HOT 1
- Kong unit tests using busted framework does not with kong 3.0.0 using cassandra db (3.10, 3.11). These are working fine with kong 2.8.3 HOT 3
- Custom kong plugins are not displayed in kong manager with the list of plugins HOT 3
- Kong plugin file-log always logs response connection header as close HOT 8
- Bug in proxy-cache plugin not returning age header HOT 3
- Cannot restrict routes to specific consumers via auth plugins HOT 3
- Bug in proxy-cache plugin returning compressed cached content to clients not supporting compression HOT 7
- http-log create incorrect elasticsearch mapping and trigger parse error HOT 3
- kong gateway doc, upstream_keepalive_max_requests and nginx_http_keepalive_requests default value not match in nginx-kong.conf HOT 8
- kong 500 error:received: 500; {"message":"An unexpected error occurred"} HOT 11
- Kong ingress controller failed to fetch secrets for kong consumers if restarted (either due to some crash or planned) HOT 2
- URI is sometimes `/kong_error_handler` on upstream status 502s HOT 2
- lua/5.1/kong/db/schema/init.lua:1244: attempt to index a nil value HOT 2
- [kong] schedule.lua:172 [job prefetch]Redis bgsave failed. Error: ERR unknown command 'bgsave' HOT 2
- Control Plane fails to pull information from database pending "migrations finish" command HOT 2
- In Kong 3.6, X-Kong-Request-Debug-Output is not provided in the response header for successful scenarios HOT 3
- AI-Proxy plugin: "An unexpected error occurred" when upstream URL is missing port/path HOT 6
- AI Prompt Guard plugin: Unexpected error due to malformed `messages` array in request body HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kong.