  apiVersion: batch/v1beta1
  kind: CronJob
  metadata:
    name: haystack-agent-tester
  spec:
    #Run every 5 minutes
    schedule: "*/5 * * * *"
    jobTemplate:
      spec:
        template:
          spec:
            containers:
              - name: haystack-agent-tester
                image: eleduardo/haystack-agent-tester:latest
                args: ["batch"]
                env:
                  - name: HS_HOST
                    value: haystack-agent.kube-system
            #              Uncomment to override the default port
            #            - name: HS_PORT
            #              value: 35000
            restartPolicy: OnFailure
