-
Book Overview & Buying
-
Table Of Contents
Learn OpenShift - Second Edition
By :
Like any complex system, OpenShift sometimes needs debugging. When issues occur, the person managing the cluster may need to run commands on failing pods or nodes. We also need to consider that SSH should not be used for node access whenever possible, for the reasons that we mentioned back in Chapter 3, Getting Started with OpenShift, Installation Methods > Prerequisites > SSH. So, how can you access a node for service actions or debugging without using SSH? The solution is the debug shell – a universal tool for debugging nodes and pods.
It lets you interact with containers directly, giving you access to logs, running processes, and the filesystem. You can use it to troubleshoot problems such as environment configuration errors and missing files, or to check the state of a running container. In this section, we’ll cover how to start a debug session, navigate within the shell, and use common commands for effective troubleshooting.
Before...