- List the pods
kubectl get podsAdd -A to see pods in every namespace or -n followed by a name for just one.
- Read a pod's logs
kubectl logs my-app-7d9c5b6f4-x2kqp - Follow the logs live
kubectl logs -f my-app-7d9c5b6f4-x2kqpPress Ctrl+C to stop.
- Read the logs from before it crashed
kubectl logs my-app-7d9c5b6f4-x2kqp --previousUse this when the status says CrashLoopBackOff.
- See why a pod won't start
kubectl describe pod my-app-7d9c5b6f4-x2kqpThe Events list at the bottom usually says what went wrong.
- Delete a stuck pod
kubectl delete pod my-app-7d9c5b6f4-x2kqpIf a deployment made it, a fresh pod starts by itself.
Check it worked
- Check the new pod is running
kubectl get pods
- List the pods
kubectl get podsAdd -A to see pods in every namespace or -n followed by a name for just one.
- Read a pod's logs
kubectl logs my-app-7d9c5b6f4-x2kqp - Follow the logs live
kubectl logs -f my-app-7d9c5b6f4-x2kqpPress Ctrl+C to stop.
- Read the logs from before it crashed
kubectl logs my-app-7d9c5b6f4-x2kqp --previousUse this when the status says CrashLoopBackOff.
- See why a pod won't start
kubectl describe pod my-app-7d9c5b6f4-x2kqpThe Events list at the bottom usually says what went wrong.
- Delete a stuck pod
kubectl delete pod my-app-7d9c5b6f4-x2kqpIf a deployment made it, a fresh pod starts by itself.
Check it worked
- Check the new pod is running
kubectl get pods
- List the pods
kubectl get podsAdd -A to see pods in every namespace or -n followed by a name for just one.
- Read a pod's logs
kubectl logs my-app-7d9c5b6f4-x2kqp - Follow the logs live
kubectl logs -f my-app-7d9c5b6f4-x2kqpPress Ctrl+C to stop.
- Read the logs from before it crashed
kubectl logs my-app-7d9c5b6f4-x2kqp --previousUse this when the status says CrashLoopBackOff.
- See why a pod won't start
kubectl describe pod my-app-7d9c5b6f4-x2kqpThe Events list at the bottom usually says what went wrong.
- Delete a stuck pod
kubectl delete pod my-app-7d9c5b6f4-x2kqpIf a deployment made it, a fresh pod starts by itself.
Check it worked
- Check the new pod is running
kubectl get pods

New to log? I explain it in plain English on Layman Terms.