cronjob that invokes runner
parent
c4cebcea6d
commit
000ff9a711
|
|
@ -6,3 +6,4 @@ resources:
|
|||
- ./web-client-deployment.yaml
|
||||
- ./client-ingress.yaml
|
||||
- ./admin-ingress.yaml
|
||||
- ./scrape-cronjob.yaml
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: runner-sync
|
||||
spec:
|
||||
schedule: "* * * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
name: runner-sync
|
||||
spec:
|
||||
restartPolicy: OnFailure
|
||||
containers:
|
||||
- name: sync-runner
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
[
|
||||
"curl",
|
||||
"http://local-proxy-admin/api/v1/sync",
|
||||
'-d=''{"target":"liveauctioneers"}''',
|
||||
"-vvvv",
|
||||
]
|
||||
|
|
@ -5,3 +5,23 @@ commonLabels:
|
|||
environment: beta
|
||||
|
||||
namePrefix: beta-
|
||||
|
||||
# patchesStrategicMerge:
|
||||
# - debug-catalog.yaml
|
||||
# - debug-runner.yaml
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Ingress
|
||||
name: admin
|
||||
patch: |-
|
||||
- op: replace
|
||||
path: /spec/rules/0/host
|
||||
value: admin.beta.barretthousen.com
|
||||
- target:
|
||||
kind: Ingress
|
||||
name: web
|
||||
patch: |-
|
||||
- op: replace
|
||||
path: /spec/rules/0/host
|
||||
value: beta.barretthousen.com
|
||||
|
|
|
|||
Loading…
Reference in New Issue