Skip to content

Commit df73b95

Browse files
authored
Create indexed-job-vol.yaml
1 parent 06647ca commit df73b95

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: 'indexed-job'
5+
spec:
6+
completions: 5
7+
parallelism: 3
8+
completionMode: Indexed
9+
template:
10+
spec:
11+
restartPolicy: Never
12+
containers:
13+
- name: 'worker'
14+
image: 'docker.io/library/busybox'
15+
command:
16+
- "rev"
17+
- "/input/data.txt"
18+
volumeMounts:
19+
- mountPath: /input
20+
name: input
21+
volumes:
22+
- name: input
23+
downwardAPI:
24+
items:
25+
- path: "data.txt"
26+
fieldRef:
27+
fieldPath: metadata.annotations['batch.kubernetes.io/job-completion-index']

0 commit comments

Comments
 (0)