Changes

Jump to navigation Jump to search
m
Checking in on the job
# somewhere in the output you should see a line like this:
NAME READY STATUS RESTARTS AGE
your-username-tf-mnist-xxxx 1/1 Running 0 7s
</syntaxhighlight>
<syntaxhighlight lang="bash">
# replace xxxx with the code from get pods.
> kubectl logs your-username-tf-mnist-xxxx
# this should show the console output of your python program
</syntaxhighlight>
<syntaxhighlight lang="bash">
> kubectl describe job your-username-tf-mnist
# replace xxxx with the code from get pods.
> kubectl describe pod your-username-tf-mnist-xxxx
</syntaxhighlight>
<syntaxhighlight lang="bash">
> kubectl exec -it your-username-tf-mnist-xxxx /bin/bash
root@tf-mnist-xxxxx:/workspace# nvidia-smi
Tue Jun 18 14:25:00 2019

Navigation menu