ArgoCron is a simple pod that triggers Argo Workflows using Kubernetes CronJobs. Works as an alternative to set up a calendar system using argo-events.
- Simplier deploy and configuration
- Can not allow concurrent runs (using concurrencyPolicy from Kubernetes)
- Cleans up old Workflow pods before starting a new Worfklow
ArgoCron simply clones a Git repository and executes an argo submit --watch
of a given workflow in the Git repository.
Also, in order to avoid older containers in the cluster, it can clean up and delete older containers before the execution of the cluster
Install Argo in your kubernetes cluster
-
Create a git repository containing your workflows
-
Download and configure argo.cronjob.yaml
- Set the SSH Key secret
- Set the known_hosts secret
- Set the name of the workflow file
-
You can generate the fingerprints for
known_hosts
withssh-keyscan
:
ssh-keyscan github.com OR ssh-keyscan bitbucket.com
- Set the container ARGs as the name of the file containing the workflow
- NAMESPACE [
default
]: sets the namespace where to run the workflow in. - OLDER [
5d
]: deletes all the previous workflow runs previous to certain time - GIT_BRANCH [
master
]: git branch to be checked out to find the workflow
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Erik Berdonces - Initial work - BitPhy
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- BitPhy Team
- Argo