Comments (3)
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.
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.
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)
- Updating schedule on a container does not change it in the service
- Queries all services not just it's own stack HOT 3
- How does rancher-cron handle services with scale > 1? HOT 3
- Support Self-Signed SSL HOT 4
- Getting a error about container is in running state HOT 2
- Metadata access HOT 1
- configurable timezone HOT 2
- Scratch image
- remove containers instead of start/stop
- new release for stopped services HOT 1
- Have option for RESTARTING a service instead of Starting it (if running)
- com.socialengine.rancher-cron.schedule @after Service1 HOT 1
- Container is in running state HOT 2
- Cron syntax HOT 1
- Predefined schedules issue HOT 3
- Write stdout logs when starting service HOT 2
- Disable cron for "Stopped" services 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 rancher-cron.