Skip to content

Commit 4648919

Browse files
authored
Create job-tmpl.yaml
1 parent 803b49c commit 4648919

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: process-item-$ITEM
5+
labels:
6+
jobgroup: jobexample
7+
spec:
8+
template:
9+
metadata:
10+
name: jobexample
11+
labels:
12+
jobgroup: jobexample
13+
spec:
14+
containers:
15+
- name: c
16+
image: busybox:1.28
17+
command: ["sh", "-c", "echo Processing item $ITEM && sleep 5"]
18+
restartPolicy: Never

0 commit comments

Comments
 (0)