blob: b90b3b9e68d2ded4e838fca829f70433f0929c5e [file] [log] [blame]
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: periodic-trigger-weekly
spec:
schedule: "0 5 * * 0"
concurrencyPolicy: "Forbid"
jobTemplate:
spec:
template:
spec:
restartPolicy: Never
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: periodic-trigger
image: gcr.io/skia-public/periodic-trigger:2019-01-09T20_03_55Z-borenet-d3424a1-clean
args:
- "--logtostderr"
- "--project=skia-public"
- "--trigger=weekly"
volumeMounts:
- name: skia-task-scheduler-sa
mountPath: /var/secrets/google
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
volumes:
- name: skia-task-scheduler-sa
secret:
secretName: task-scheduler