Added basic setup for master and certification material
This commit is contained in:
19
files/LFS258/SOLUTIONS/s_06/cron-job.yaml
Normal file
19
files/LFS258/SOLUTIONS/s_06/cron-job.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: date
|
||||
spec:
|
||||
schedule: "*/1 * * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: dateperminute
|
||||
image: busybox
|
||||
args:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- date; sleep 30
|
||||
restartPolicy: OnFailure
|
||||
|
||||
18
files/LFS258/SOLUTIONS/s_06/cronjob.yaml
Normal file
18
files/LFS258/SOLUTIONS/s_06/cronjob.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: sleepy
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: resting
|
||||
image: busybox
|
||||
command: ["/bin/sleep"]
|
||||
args: ["5"]
|
||||
restartPolicy: Never
|
||||
|
||||
|
||||
14
files/LFS258/SOLUTIONS/s_06/job.yaml
Normal file
14
files/LFS258/SOLUTIONS/s_06/job.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: sleepy
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: resting
|
||||
image: busybox
|
||||
command: ["/bin/sleep"]
|
||||
args: ["3"]
|
||||
restartPolicy: Never
|
||||
|
||||
Reference in New Issue
Block a user