ID add task for automatic running task with cronjob

This commit is contained in:
mufti ismi
2020-04-21 17:05:42 +07:00
parent ebf3d178c4
commit d33071dd7c
2 changed files with 232 additions and 0 deletions
@@ -0,0 +1,18 @@
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hello
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: busybox
args:
- /bin/sh
- -c
- date; echo Hello from the Kubernetes cluster
restartPolicy: OnFailure