apiVersion: batch/v1
kind: Job
metadata:
  name: prepare-cloud-dataset
spec:
  template:
    metadata:
      name: prepare-cloud-dataset
    spec:
      volumes:
        - name: data-storage
          cephfs:
            monitors:
              - <MONITOR_ADDR>
            path: "/public"
            user: "admin"
            secretRef:
              name: ceph-secret
      containers:
      - name: prepare
        image: yancey1989/paddlecloud-job
        command: ["sh", "-c", "python -c \"import paddle.v2.dataset as dataset; dataset.common.convert('/pfs/<DATACENTER>/public/dataset')\""]
        volumeMounts:
        - name: data-storage
          mountPath: /pfs/<DATACENTER>/public
      restartPolicy: Never

