apiVersion: batch/v1
kind: Job
metadata:
  name: observatorium-up
spec:
  backoffLimit: 5
  template:
    metadata:
      labels:
        app.kubernetes.io/component: test
        app.kubernetes.io/instance: e2e-test
        app.kubernetes.io/name: observatorium-up
        app.kubernetes.io/version: master-2020-03-31-6e67351
    spec:
      containers:
      - args:
        - --endpoint-write=http://observatorium-xyz-observatorium-api-gateway.observatorium.svc.cluster.local:8080/api/metrics/v1/write
        - --endpoint-read=http://observatorium-xyz-observatorium-api-gateway.observatorium.svc.cluster.local:8080/api/metrics/v1/api/v1/query
        - --period=1s
        - --duration=2m
        - --name=foo
        - --labels=bar="baz"
        - --latency=10s
        - --initial-query-delay=5s
        - --threshold=0.90
        image: quay.io/observatorium/up:master-2020-03-31-6e67351
        name: observatorium-up
        resources:
          limits:
            cpu: 500m
            memory: 128Mi
      restartPolicy: OnFailure
