Stream logs from a pod:
kubectl logs -f my-pod --tail=100Logs from a previous crashed container:
kubectl logs my-pod --previousExec into a running container:
kubectl exec -it my-pod -- /bin/shAttach a debug container to a running pod (K8s 1.25+):
kubectl debug -it my-pod --image=busybox --target=my-containerGet events for a specific pod:
kubectl get events --field-selector involvedObject.name=my-pod --sort-by=.lastTimestamp