ms-mnist.yaml 572 字节
Newer Older
L
leonwanghui 已提交
1 2 3 4 5 6
apiVersion: v1
kind: Pod
metadata:
  name: msjob-mnist
spec:
  containers:
7
  - image: mindspore/mindspore-cpu:0.1.0-alpha
L
leonwanghui 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
    imagePullPolicy: IfNotPresent
    name: msjob-mnist
    command: ["/bin/bash", "-c", "python /tmp/test/MNIST/lenet.py"]
    volumeMounts:
      - name: training-result
        mountPath: /tmp/result
      - name: ms-mnist
        mountPath: /tmp/test
  restartPolicy: OnFailure
  volumes:
    - name: training-result
      emptyDir: {}
    - name: ms-mnist
      hostPath:
        path: /root/gopath/src/gitee.com/mindspore/ms-operator/examples/