Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created February 15, 2021 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/0bfca0b7f62a2a666e33b92b3c5f5496 to your computer and use it in GitHub Desktop.
Save xximjasonxx/0bfca0b7f62a2a666e33b92b3c5f5496 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: price-writer-job
namespace: stock-app
spec:
schedule: "*/2 * * * *"
successfulJobsHistoryLimit: 0
failedJobsHistoryLimit: 0
jobTemplate:
spec:
template:
spec:
containers:
- name: price-write-container
image: acrstockapp.azurecr.io/stockpricewriter:latest
imagePullPolicy: Always
env:
- name: ENV
value: cluster
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment