Skip to content

Instantly share code, notes, and snippets.

@Phineas
Created December 18, 2018 16:23
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 Phineas/d6251908eaf0593df0b530e3ba482634 to your computer and use it in GitHub Desktop.
Save Phineas/d6251908eaf0593df0b530e3ba482634 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: streamupdater-cron
spec:
schedule: "*/1 * * * *"
jobTemplate:
metadata:
labels:
app: streamupdater
tier: worker
spec:
template:
spec:
containers:
- name: cxnet-streamupdater
image: gcr.io/cx-network-204116/streamupdater
imagePullPolicy: Always
env:
- name: SCRIPT
value: index.js
- name: PROJECT_ID
value: cx-network-204116
restartPolicy: OnFailure
nodeSelector:
streamUpdaterIPWhitelisted: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment