We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06647ca commit df73b95Copy full SHA for df73b95
content/bn/examples/application/job/indexed-job-vol.yaml
@@ -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