Troubleshooting in Kubernetes

Lab Steps

Logging in to the Amazon Web Services Console
Understanding the Kubernetes Cluster Architecture
Connecting to the Kubernetes Cluster Through a Bastion Host
Troubleshooting Kubernetes Cluster Access Issues
Troubleshooting Kubernetes Cluster Node Failures
Troubleshooting Kubernetes Cluster Component Failures
Troubleshooting Kubernetes Applications
Validate AWS Lab

Ready for the real environment experience?

Time Limit1h 30m


Failures are inevitable when running large clusters. This Lab teaches you how to detect, diagnose, and remedy a variety of Kubernetes failures at the network, node, control-plane, and application levels. You will use tools included in Kubernetes, such as kubectl, as well as a variety of Linux operating system tools like systemctl, journalctl, ss, and openssl to build a comprehensive Kubernetes troubleshooting toolkit. In addition to reacting to failures, the Lab points out some ways that you can proactively reduce the chance of failures when working with Kubernetes.

This Lab is valuable to anyone working with Kubernetes, but the content has been prepared considering topics described in the Certified Kubernetes Administrator (CKA) Exam Curriculum. Completion of the Lab will help you get hands-on experience, which is essential for passing the CKA exam.

Lab Objectives

Upon completion of this Lab, you will be able to:

  • Troubleshoot Kubernetes connection failures
  • Troubleshoot Kubernetes node failures
  • Troubleshoot Kubernetes component failures
  • Troubleshoot Kubernetes application failures

Lab Prerequisites

You should be familiar with:

  • Working with Kubernetes to deploy applications
  • Working at the command line in Linux

The following Labs can be used to fulfill the prerequisites: Deploy a Stateless Application in a Kubernetes Cluster and Deploy a Stateful Application in a Kubernetes Cluster


October 19th, 2021 - Updated the lab instructions to use EC2 Instance Connect to connect to the bastion host

September 7th, 2021 - Update the Troubleshooting Kubernetes Cluster Access Issues certificate instructions and commentary

September 19th, 2020 - Updated to the latest Kubernetes version

August 28th, 2020 - Updated the SSH instructions to reflect the new EC2 user interface

May 29th, 2019 - Updated the monitoring to use Metrics Server, and increased the master node's instance size to accommodate the heftier requirements

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

Environment before
Environment after
About the Author
Learning paths46

Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, AWS Certified Solutions Architect - Professional, Microsoft Certified Azure Solutions Architect Expert, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Security Specialist (CKS), Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), and Certified OpenStack Administrator (COA). He earned his Ph.D. studying design automation and enjoys all things tech.