Alpine-based image with just curl and run every 10 seconds within 1 minute
Create a yaml file "cron.yaml" such as:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: cronjob1
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: cronjob1
image: hermanho/curl-every-10seconds
args:
- -s
- https://www.google.com/
restartPolicy: OnFailure
Execute the following command to deploy
$ kubectl apply -f cron.yaml