Run Kubernetes Job in Multi-Cluster
Run a MultiKueue scheduled Kubernetes Job.
Before you begin
Check the MultiKueue installation guide on how to properly setup MultiKueue clusters.
The current status of a Job being executed by MultiKueue on a worker cluster is live-updated on the management cluster.
This gives the users and automation tools the ability to track the progress of Job status (.status) without lookup to the worker cluster, making MultiKueue transparent from that perspective.
Example
Once the setup is complete you can test it by running the example below:
apiVersion: batch/v1
kind: Job
metadata:
generateName: sample-job-
namespace: default
labels:
kueue.x-k8s.io/queue-name: user-queue
spec:
parallelism: 3
completions: 3
template:
spec:
containers:
- name: dummy-job
image: registry.k8s.io/e2e-test-images/agnhost:2.53
command: [ "/bin/sh" ]
args: [ "-c", "sleep 60" ]
resources:
requests:
cpu: "1"
memory: "200Mi"
restartPolicy: Never
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.