apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: service-monitoring
spec:
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        metadata:
          labels:
            app: service-monitoring
        spec:
          containers:
          - name: service-monitoring
            image: prague.azurecr.io/monitoring:latest
            imagePullPolicy: Always
          restartPolicy: Never
  schedule: '*/10 * * * *'
  successfulJobsHistoryLimit: 3