A kubernetes native workflow orchestrator used to create DAGs that can run on a schedule as well as in an event driven manner
Kontroler is a Kubernetes scheduling engine for managing Directed Acyclic Graphs (DAGs) through cron-based jobs or event-driven execution.
This system allows for running containers as tasks within a DAG, while providing an optional web-based UI for creating, managing, and visualizing DAG runs. DAGs can be defined using either traditional YAML task arrays or a concise Domain Specific Language (DSL).
Worth noting that as this is alpha still expect multiple breaking changes between version, while there are no real uses of Kontroler there will be no migration scripts between versions
The best place to find the most up to date documentation is at our docsite, you can find it at: https://kontroler.dev
You can find the unified helm chart under the /helm directory in this repo. The helm chart contains:
Currently the helm chart leans on cert-manager, there is planned out to de-couple the chart from relying on cert-manager.
Kontroler is in a very early alpha state and if it is used in production expect bugs along with breaking changes coming in future releases.
Kontroler aims to provide a way to manage scheduling containers in a simple manner via YAML files.
Features we are aiming to cover are:
The Server+UI allows you to:
Planned Features:
Here are two examples, one event-driven & one that runs on a schedule:
Event Driven
apiVersion: kontroler.greedykomodo/v1alpha1
kind: DAG
metadata:
name: event-driven
spec:
schedule: ""
parameters:
- name: first
defaultFromSecret: secret-name
- name: second
defaultValue: value
task:
- name: "random"
command: ["sh", "-c"]
args:
[
"if [ $((RANDOM%2)) -eq 0 ]; then echo $second; else exit 1; fi",
]
image: "alpine:latest"
backoff:
limit: 3
parameters:
- second
conditional:
enabled: true
retryCodes: [1]
podTemplate:
volumes:
- name: example-pvc
persistentVolumeClaim:
claimName: example-claim # The name of the PVC
volumeMounts:
- name: example-pvc
mountPath: /data # Path inside the container where the PVC is mounted
imagePullSecrets:
- name: my-registry-secret
securityContext:
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000
nodeSelector:
disktype: ssd
tolerations:
- key: "key1"
operator: "Equal"
value: "value1"
effect: "NoSchedule"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "kubernetes.io/e2e-az-name"
operator: In
values:
- e2e-az1
- e2e-az2
serviceAccountName: "custom-service-account"
automountServiceAccountToken: false
- name: "random-b"
command: ["sh", "-c"]
args:
[
"if [ $((RANDOM%2)) -eq 0 ]; then echo 'Hello, World!'; else exit 1; fi",
]
image: "alpine:latest"
runAfter: ["random"]
backoff:
limit: 3
conditional:
enabled: true
retryCodes: [1]
parameters:
- first
- second
- name: "random-c"
command: ["sh", "-c"]
args:
[
"if [ $((RANDOM%2)) -eq 0 ]; then echo 'Hello, World!'; else exit 1; fi",
]
image: "alpine:latest"
runAfter: ["random"]
backoff:
limit: 3
conditional:
enabled: true
retryCodes: [1]
Schedule:
apiVersion: kontroler.greedykomodo/v1alpha1
kind: DAG
metadata:
name: dag-schedule
spec:
schedule: "*/1 * * * *"
task:
- name: "random"
command: ["sh", "-c"]
args:
[
"echo 'Hello, World!'",
]
image: "alpine:latest"
backoff:
limit: 3
conditional:
enabled: true
retryCodes: [8]
- name: "random-b"
command: ["sh", "-c"]
args:
[
"echo 'Hello, World!'",
]
image: "alpine:latest"
runAfter: ["random"]
backoff:
Add CONTRIBUTING.md with developer onboarding and build instructions
https://github.com/GreedyKomodoDragon/Kontroler/issues/196
Labels: documentation, AI generated
Make cert-manager an optional dependency in the Helm chart
https://github.com/GreedyKomodoDragon/Kontroler/issues/194
Labels: enhancement, helm, AI generated
No CONTRIBUTING document was found. Please check the README and open issues.