Last active
June 22, 2020 17:24
-
-
Save koushikbasu/4cc148e08b6a487bf84e9414a92967f9 to your computer and use it in GitHub Desktop.
Kubernotes Cronjob
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: deletelogs | |
spec: | |
schedule: "*/1 * * * *" | |
concurrencyPolicy: Forbid | |
successfulJobsHistoryLimit: 1 | |
failedJobsHistoryLimit: 1 | |
jobTemplate: | |
spec: | |
template: | |
spec: | |
containers: | |
- name: curl | |
image: buildpack-deps:curl | |
args: | |
- /bin/sh | |
- -ec | |
- curl https://bugman.abicart.com | |
restartPolicy: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment