Book Image

Troubleshooting Docker

By : Vaibhav Kohli, Rajdeep Dua, John Wooten
Book Image

Troubleshooting Docker

By: Vaibhav Kohli, Rajdeep Dua, John Wooten

Overview of this book

You?re pro Docker? You?ve read all about orchestration with Docker in books? Now learn how to troubleshoot Docker in practice. Gain all the tools to safely see Docker in action with this 2017 book.
Table of Contents (17 chapters)
Troubleshooting Docker
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Free Chapter
1
Understanding Container Scenarios and an Overview of Docker

Debugging Kubernetes issues


In this section, we'll be discussing some of the Kubernetes troubleshooting concerns:

  1. The first step to debug the Kubernetes cluster is to list the number of nodes, using the following command:

    $ kubetl get nodes
    

    Also, verify that all nodes are in the ready state.

  2. Look at the logs in order to figure out issues in the deployed Kubernetes cluster 

        master:
            var/log/kube-apiserver.log - API Server, responsible for serving the API
            /var/log/kube-scheduler.log - Scheduler, responsible for making scheduling 
        decisions
            /var/log/kube-controller-manager.log - Controller that manages replication 
        controllers
        Worker nodes:
    
            /var/log/kubelet.log - Kubelet, responsible for running containers on the 
        node
            /var/log/kube-proxy.log - Kube Proxy, responsible for service load 
        balancing
    
    
  3. If the pod stays in the pending state, use the following command:

    $ cluster/kubectl.sh describe...