{ "apiVersion": "adaptdl.petuum.com/v1", "kind": "AdaptDLJob", "metadata": { "name": "", "labels": { "app": "", "expId": "", "trialId": "" } }, "spec": { "preemptible": false, "template": { "spec": { "containers": [ { "lifecycle": { "preStop": { "exec": { "command": ["/cleanup.sh"] } } }, "command": ["/run.sh"], "env": [ { "name": "ADAPTDL_CHECKPOINT_PATH", "value": "/adaptdl/checkpoint" }, { "name": "ADAPTDL_TENSORBOARD_LOGDIR", "value": "/adaptdl/tensorboard" }, { "name": "ADAPTDL_SHARE_PATH", "value": "/adaptdl/share" } ], "image": "", "imagePullPolicy": "Always", "name": "main", "resources": { "requests": { "memory": "", "cpu": "" }, "limits": { "nvidia.com/gpu": 1 } }, "volumeMounts": [ { "mountPath": "/adaptdl/checkpoint", "name": "adaptdl-pvc", "subPath": "adaptdl/checkpoint" }, { "mountPath": "/adaptdl/share", "name": "adaptdl-pvc", "subPath": "adaptdl/share" }, { "mountPath": "/adaptdl/tensorboard", "name": "adaptdl-tensorboard-pvc", "subPath": "adaptdl/tensorboard" }, { "mountPath": "/cleanup.sh", "name": "adaptdl-nni-configmap", "subPath": "cleanup.sh" }, { "mountPath": "/run.sh", "name": "adaptdl-nni-configmap", "subPath": "run.sh" } ] } ], "imagePullSecrets": [], "volumes": [ { "name": "adaptdl-pvc", "persistentVolumeClaim": { "claimName": "" } }, { "name": "adaptdl-tensorboard-pvc", "persistentVolumeClaim": { "claimName": "" } }, { "name": "adaptdl-nni-configmap", "configMap": { "name": "", "defaultMode": 511 } } ] } } } }