How To Get Logs from a Dead Container in Kubernetes

1

Check the status of the storage-provisioner pod in the kube-system namespace.

kubectl get po <pod> -n <ns>
2

Retrieve the previous logs of the storage-provisioner pod in the kube-system namespace.

kubectl logs <pod> --previous -n <ns>