Giter VIP home page Giter VIP logo

Comments (5)

ashutosh-narkar avatar ashutosh-narkar commented on May 24, 2024

@ajoysinha can you elaborate on your use-case ? What role would kube-mgmt play ? Are you looking into distributing policy and data to the OPA sidecars ?

from kube-mgmt.

ajoysinha avatar ajoysinha commented on May 24, 2024

I am trying to update OPA with changed policy deployed in cluster. please note my policy is deployed as config map. [ not as bundle ]. I want to update / reflect changed policy in OPA as soon as i am updating the config map. I was planning to use kube-mgmt for the same.. Do not have cleat idea how to achieve it.

from kube-mgmt.

ashutosh-narkar avatar ashutosh-narkar commented on May 24, 2024

You would need some sidecar that's watching config map changes and then pushes them to OPA via OPA's REST API. There maybe parts of the kube-mgmt code that could be used for this. I would recommend using bundles for this though.

from kube-mgmt.

ajoysinha avatar ajoysinha commented on May 24, 2024

I will also prefer to use bundle for the same .. [ in fact i have implement it successfully ] but the only issue i find with bundle it is a pull mechanism, rather than push mechanism.

Any suggestion how i can implement the same using push mechanism.

from kube-mgmt.

ashutosh-narkar avatar ashutosh-narkar commented on May 24, 2024

Bundles are as you mentioned a pull mechanism. OPA does allow you to adjust the polling frequency and fwiw we have an open issue for faster propagation of policy and data changes with bundles #1055 which may better suit your use-case.

The push mechanism will require you to implement a service similar to kube-mgmt that reads data from Kube events and pushes it into OPA via it's REST API. This may need more development effort imo.

If using bundles with a smaller frequency addresses your use-case, then I would recommend using that. You are also welcome to contribute to #1055 !

from kube-mgmt.

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.