add pinger.yaml which should set up the job

This commit is contained in:
asamanta 2019-07-01 14:55:34 -04:00
parent cc5943cac9
commit 6c11f13265

View file

@ -0,0 +1,18 @@
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: pinger-job
spec:
schedule: "*/5 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: main
image: pingjob
env:
- name: FRONTEND_ADDR
value: "frontend:80"
restartPolicy: OnFailure