1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/templates/create-resource/CronJob.yaml
pashevskii ec9c47752f
YAML Templates in Create Resource dock tab (#2327)
Co-authored-by: Pavel Ashevskiy <pavel.ashevskiy@ifellow.ru>
2021-04-15 08:19:54 -04:00

20 lines
420 B
YAML

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hello
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: busybox
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -c
- date; echo Hello from the Kubernetes cluster
restartPolicy: OnFailure