add pinger.yaml which should set up the job
This commit is contained in:
parent
cc5943cac9
commit
6c11f13265
1 changed files with 18 additions and 0 deletions
18
kubernetes-manifests/pinger.yaml
Normal file
18
kubernetes-manifests/pinger.yaml
Normal 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue