Any idea to view the log files of a crashed pod in kubernetes? My pod is listing it\'s state as \"CrashLoopBackOff\" after started the replicationController. I search the availa
kubectl logs command only works if the pod is up and running. If they are not, you can use the kubectl events command.
kubectl logs
kubectl events
kubectl get events -n --sort-by='.metadata.creationTimestamp'
By default it does not sort the events, hence the --sort-by flag.
--sort-by