######################################
# For deployment on D3M jump servers #
######################################

# See: https://datadrivendiscovery.org/wiki/pages/viewpage.action?pageId=11276800

apiVersion: v1
kind: Pod
metadata:
  name: stanford-ta2-pod
spec:
  restartPolicy: Never
  containers:
  - name: stanford-ta2-container
    image: registry.datadrivendiscovery.org/mlam/stanford-d3m-full:evaluation_workflow_compliant_stable
    imagePullPolicy: Always
    env:
    - name: D3MRUN
      value: "search"
    - name: D3MINPUTDIR
      value: "/input/"
    - name: D3MOUTPUTDIR
      value: "/output/"
    - name: D3MLOCALDIR
      value: "/local/"
    - name: D3MSTATICDIR
      value: ""
    - name: D3MPROBLEMPATH
      value: ""
    - name: D3MCPU
      value: "8"
    - name: D3MRAM
      value: "2"
    - name: D3MTIMEOUT
      value: "60"
    volumeMounts:
      - name: input-data
        mountPath: /input
        readOnly: true
      - name: output-data
        mountPath: /output
        readOnly: false
    resources:
      requests:
        memory: 2Gi
        cpu: 8
  imagePullSecrets:
  - name: regcred
  volumes:
  - name: input-data
    hostPath:
      path: /opt/datasets/seed_datasets_current/185_baseball
      type: Directory
  - name: output-data
    persistentVolumeClaim:
      claimName: eval-output-pv-claim
