Coder Social home page Coder Social logo

Comments (5)

brentos avatar brentos commented on June 5, 2024 1

KongClusterPlugin can be used in two ways:

  1. With the label global: "true", in which case it will be applied globally for all ingresses.
  2. 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.

ADD-SP avatar ADD-SP commented on June 5, 2024

@randmonkey Could you please take a look? I'm not familiar with KIC.

from kong.

brentos avatar brentos commented on June 5, 2024

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.

juranir avatar juranir commented on June 5, 2024

@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.

juranir avatar juranir commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.