# Copyright (c) 2022 SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: batch/v1
kind: Job
metadata:
  labels:
    run: test-metrics
  name: test-metrics
spec:
  template:
    metadata:
      labels:
        run: test-metrics
    spec:
      containers:
      - command:
        - curl
        - -q
        - -f
        - -m
        - "10"
        - http://calico-node.kube-system.svc.cluster.local:9091/metrics
        image: registry.sighup.io/fury/curlimages/curl:latest
        name: test-metrics
        resources: {}
      restartPolicy: OnFailure
