Created
March 23, 2021 04:10
-
-
Save geshan/8bf36a3888119b9d6fef62e2fd797681 to your computer and use it in GitHub Desktop.
Markdium-Kubernetes cron jobs: a hands-on guide to optimally configured crons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: print-date | |
spec: | |
schedule: "*/5 * * * *" | |
jobTemplate: | |
spec: | |
template: | |
spec: | |
containers: | |
- name: print-date | |
image: node:14-alpine | |
imagePullPolicy: IfNotPresent | |
args: | |
- -e | |
- "console.log(new Date().toString());" | |
restartPolicy: OnFailure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment