Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created August 6, 2020 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/91b1c63a4dffcf0b6d457a27e9972f0a to your computer and use it in GitHub Desktop.
Save velotiotech/91b1c63a4dffcf0b6d457a27e9972f0a to your computer and use it in GitHub Desktop.
kubectl apply -f CPU/tfjob1.yaml
POD_NAME=$(kubectl get pods -n kubeflow --selector=tf-job-name=tfjob-flat \
--template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
kubectl logs -f $POD_NAME -n kubeflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment