tioxy / scheduler Goto Github PK
View Code? Open in Web Editor NEWSimple API to schedule Simple Jobs on top of Kubernetes
License: MIT License
Simple API to schedule Simple Jobs on top of Kubernetes
License: MIT License
Instead of manual API YAML definitions, integrate gin-swagger to generate Swagger 2.0 automatically.
There should be a better way to bootstrap kubeadm join's than creating a 1-year Token for obvious security reasons.
Today it is not possible to fetch SimpleJob status, so a nice addition to the structure could be something like:
type SimpleJob struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Containers []v1.Container `json:"containers"`
MaxRetries int32 `json:"maxRetries"`
Cron string `json:"cron,omitempty"`
Status SimpleJobStatus `json:"status,omitempty"`
}
type SimpleJobStatus struct {
Message string `json:"message"`
}
And later develop something to map Kubernetes Job Status -> SimpleJob "status"
Also, for Scheduled SimpleJobs, only the last execution should be seen in the "status" key.
It seems like a problem with the base image used in Molecule tests.
The playbook works like a charm in an EC2 instance but not inside the container because of systemd incompatibilities.
$ make test-role ANSIBLE_ROLE=docker
...
...
TASK [docker : Start docker service] *******************************************
fatal: [instance]: FAILED! => {"changed": false, "cmd": "/bin/systemctl", "msg": "Failed to connect to bus: No such file or directory", "rc": 1, "stderr": "Failed to connect to bus: No such file or directory\n", "stderr_lines": ["Failed to connect to bus: No such file or directory"], "stdout": "", "stdout_lines": []}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.