Created
December 3, 2019 21:08
-
-
Save stevenc81/9e2becc0cb1d730a6dc00ff288f70a3e to your computer and use it in GitHub Desktop.
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: | |
namespace: dev | |
name: steven-cron | |
labels: | |
app: steven-cron | |
spec: | |
schedule: "* * * * *" | |
jobTemplate: | |
spec: | |
template: | |
spec: | |
nodeSelector: | |
kops.k8s.io/instancegroup: frequent-cronjob-nodes | |
tolerations: | |
- key: dedicated | |
value: frequent-cronjob-nodes | |
operator: "Equal" | |
effect: NoSchedule | |
containers: | |
- name: steven-cron | |
image: buffer/steven-cron | |
command: ["php", "./src/Crons/index.php"] | |
imagePullSecrets: | |
- name: buffer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment