Built with developer experience in mind, Tensorkube simplifies the process of deploying serverless GPU apps. Sometimes for advanced debugging usecases you might want to know the underlying details of the deployment. This cheatsheet will equip you with the nexessary commands to get the details of your deployment.

List all deployments

Use tensorkube list deployments to get the details of your deployed apps including their status and their HTTP endpoints.

List all running pods

Use kubectl get pods to get the details of all the running pods across all your deployment.

Status of pod before being created

Use kubectl describe pod <pod-name> to get the status of a pod before it is created. This will show you all the steps that tensorkube takes to create a pod. It will also give you the time each of those steps take and whether there is any scope of optimisation or not.

Logs of a pod

Use kubectl logs <pod-name> to get the logs of a pod. This will show you the logs of the pod and help you debug any issues that might be present in the pod.

SSH into a pod

Use kubectl exec -it <pod-name> -- /bin/bash to ssh into a pod. This will help you debug any issues that might be present in the pod.