apiVersion: batch/v1
kind: Job
metadata:
  name: haystack-agent-tester
spec:
  ttlSecondsAfterFinished: 300
  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
  backoffLimit: 4