apiVersion: batch/v1
kind: CronJob
metadata:
  name: model-factory-execution-syncer
  namespace: model-factory-services
spec:
  schedule: "*/1 * * * *"
  concurrencyPolicy: "Forbid"
  startingDeadlineSeconds: 900
  jobTemplate:
    spec:
      backoffLimit: 0
      activeDeadlineSeconds: 180
      template:
        spec:
          serviceAccountName: model-factory-service-sa
          containers:
          - name: model-factory-execution-syncer
            image: $DOCKER_REGISTRY/model-factory-execution-syncer
            imagePullPolicy: Always
          restartPolicy: Never
