Code Monkey home page Code Monkey logo

Comments (3)

smazurov avatar smazurov commented on September 6, 2024

That is correct. I believe thats a limitation of rancher api - we query each service to see if they have the right label, then we find container with that label. You can see this in action here. From when I looked at rancher metadata api last, there was not an equivalent container-level lookup.

Meaning, we cannot query rancher api directly for containers with that label, thus standalone containers will not be picked up. Only way I see to make it happen is to loop through all containers, which is too costly.

Any reason why you cannot create a stack with a single start-once service?

from rancher-cron.

dirkdevriendt avatar dirkdevriendt commented on September 6, 2024

No reason at all, I was just wondering if I was understanding it correctly (and if other people encounter the same thing, they may find this message).
It could be added as an optional setting at some point, but I understand the performance cost could be prohibitive for large clusters and as you say, it is easy to work around.
Thanks for taking the time to reply!

from rancher-cron.

smazurov avatar smazurov commented on September 6, 2024

No problem. Easy fix would be to lookup containers by label instead of service, but that would be on rancher api side. Closing for now, but thanks for your interest!

from rancher-cron.

Related Issues (18)

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.