Chapter 6: Debugging an Application
There are times when you need to debug an application to troubleshoot production-related issues. So far in this book, we have learned how to install, update, and delete an application.
In this chapter, we are going to cover application debugging by using kubectl describe
to show the resolved object configuration and desired state before the actual events in the pod. Then we are going to check pod logs for errors, and finally, executing in a container (executing into a container means getting shell access in the running container) and running a command there.
In this chapter, we're going to cover the following main topics:
- Describing a pod
- Checking pod logs
- Executing a command in a running container