changelog: null
name: TestPelotonDockerJob_PersistentVolume
type: 1
owningteam: team6
ldapgroups:
- money
- team6
- otto
description: "A dummy test docker job for peloton using persistent volume"
labels:
- key: testKey0
  value: testVal0
- key: testKey1
  value: testVal1
- key: testKey2
  value: testVal2
instancecount: 1
sla:
  priority: 22
  minimuminstancecount: 12
  minimuminstancepercent: 50
  preemptible: false
defaultconfig:
  resource:
    cpulimit: 0.2
    memlimitmb: 16.0
    disklimitmb: 16
    fdlimit: 10
  healthcheck: null
  labels:
  - key: testKey11
    value: testVal11
  - key: testKey22
    value: testVal22
  ports: []
  container:
    type: 1
    docker:
      image: "debian"
      parameters:
        - key: env
          value: TEST_ENV0=testVal0
        - key: env
          value: TEST_ENV1=testVal1
    volumes:
      - containerpath: /test-tmp
        hostpath: /tmp
        mode: 1
      - containerpath: /test-var
        hostpath: /var
        mode: 2
  volume:
     containerpath: testvolumepath
     sizemb: 20
  command:
    shell: true
    value: 'echo Hello && sleep 3600'
  constraint:
    type: 1  # LABEL_CONSTRAINT
    labelconstraint:
      kind: 1 # TASK
      condition: 2 # CONDITION_EQUAL
      requirement: 0
      label:
        key: testKey11
        value: testVal11
