Skip to content

Instantly share code, notes, and snippets.

@stevenc81
Created December 3, 2019 21:08
Show Gist options
  • Save stevenc81/9e2becc0cb1d730a6dc00ff288f70a3e to your computer and use it in GitHub Desktop.
Save stevenc81/9e2becc0cb1d730a6dc00ff288f70a3e to your computer and use it in GitHub Desktop.
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