---
apiVersion: batch/v1
kind: Job
metadata:
  name: test-jobmon
  namespace: arena-system
  labels:
    role: jobmon
spec:
  # backoffLimit: 0
  template:
    metadata:
      labels:
        role: jobmon
    spec:
      serviceAccountName: jobmon
      restartPolicy: Never
      containers:
      - name: test-jobmon
        image: registry.cn-zhangjiakou.aliyuncs.com/tensorflow-samples/jobmon:latest
        imagePullPolicy: Always
        env:
         - name: NAMESPACE
           value: default
         - name: JOBNAME
           value: "pi"
         - name: STATEFULSETNAME
           value: "web"
        