Skip to content

Commit

Permalink
Merge pull request #628 from danielvegamyhre/coord-example
Browse files Browse the repository at this point in the history
Add example for coordinator
  • Loading branch information
k8s-ci-robot authored Jul 26, 2024
2 parents a9165e1 + 3713b0b commit 968bb88
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions examples/simple/coordinator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: jobset.x-k8s.io/v1alpha2
kind: JobSet
metadata:
name: coordinator-example
spec:
# label and annotate jobs and pods with stable network endpoint of the designated
# coordinator pod:
# jobset.sigs.k8s.io/coordinator=coordinator-example-driver-0-0.coordinator-example
coordinator:
replicatedJob: driver
jobIndex: 0
podIndex: 0
replicatedJobs:
- name: workers
template:
spec:
parallelism: 4
completions: 4
backoffLimit: 0
template:
spec:
containers:
- name: sleep
image: busybox
command:
- sleep
args:
- 100s
- name: driver
template:
spec:
parallelism: 1
completions: 1
backoffLimit: 0
template:
spec:
containers:
- name: sleep
image: busybox
command:
- sleep
args:
- 100s

0 comments on commit 968bb88

Please sign in to comment.