Cronjob Example 1
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
job Example
apiVersion: batch/v1
kind: Job
metadata:
name: pi
spec:
template:
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: Never
backoffLimit: 4
session-1-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-2-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-3-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-4-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-5-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-6-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-7-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-8-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-9-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-10-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
session-11-kubernetes-fundamental-tutorials-by-rajesh-jan-2021
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024