Commit 1f6d816a authored by Sebastian Denz's avatar Sebastian Denz
Browse files

add example kubernetes cronjob

parent 919beb67
Pipeline #8489 passed with stage
in 51 seconds
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: opsgenie-heartbeat
namespace: monitoring
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: gitlab-registry.gonicus.de/denzs/opsgenie_heartbeat/image:0.3
env:
- name: PROMETHEUS
value: "http://prometheus:9090/-/healthy"
- name: ALERTMANAGER
value: "http://alertmanager:80/-/healthy"
- name: APITOKEN
value: "956b4bb7-5bd6-4512-aea2-338b0155b6cb"
restartPolicy: Never
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment