- cpu pod:
kubectl apply -f interactive_pod.yaml
- A6000 gpu pod:
kubectl apply -f interactive_pod_a6000.yaml
bash submit_batch_job.sh
Comments:
- Variables from
submit_batch_job.sh
torun_job.yaml
are passed byexport
argument, e.g.data_id
- Commands for each job are specified by
args
inrun_job.yaml
, include copy the necessary code and data to the machine from persistent memory, create and apply environment, run code, save the results back to the persistent memory. Don't forget to delete the job once they are done.bach delete_batch_job.sh
- Copy from local to persistent memory.
kubectl cp -n ucsd-kamalikalab [local/path] [active pod name]:[mounted/persistent/memory/path/at/this/pod]
- Check all pods.
kubectl get pods
- Force delete a pod.
kubectl delete -f interactive_pod.yaml --grace-period=0 --force
- Check the logs from a specific job.
kubectl logs -f [pod name]