Lesson 9 Troubleshooting Application Failures Control Panel Failures Network Failures
Lesson 9 Troubleshooting Application Failures Control Panel Failures Network Failures
Kubernetes: Troubleshooting
Learning Objectives
Use the kubectl get pods command to check the state of the pod
Use the kubectl get events command to fetch the events for all resources
Checking Pod Status, Logs, and Events
Problem Statement: You are given a project to check the pod state, logs, and events.
Control Panel Failure
Checking Control Panel Failure Status
Problem Statement: You are given a project to check control panel failure status in pod and
service.
Worker Node Failure
Checking Node Status
The kubectl describe node <insert-node-name-here> command is used to check the status of
a node. It displays the node status and a few other details.
Addresses Conditions
The top command kubectl top [options] is used to see the resource consumption of the nodes
or pods.
The master and cert connectivity terminates at the kubelet’s HTTP endpoints.
The --kubelet-certificate-authority flag is used to provide the apiserver with a root certificate bundle.
Problem Statement: You are given a project to check node status and describe a node to
know the status of the Kubernetes environment.
Top Command to Check Node Performance
Problem Statement: You are given a project to demonstrate the use of the top command to
check node performance.
Master and Cert Connectivity Status
Problem Statement: You are given a project to check the status of master and cert
connectivity.
Worker Node Failure Check
Problem Statement: You are given a project to perform the worker node failure check.
Network Failure
Service Connectivity Check
You can execute nslookup in the environment once the pod is running. You will see the
following if the DNS is running:
The kube-proxy network runs on each node. The Kube-proxy [flag] is used for communicating with the
master node and routing.
The CNI is responsible to adhere to the appc/CNI specification, designed for interoperability.
Problem Statement: You are given a project to perform a service connectivity check.
nslookup Check
Problem Statement: You are given a project to perform a kube-proxy check and CNI plugin
check.
Network Failure Check
Problem Statement: You are given a project to perform a network failure check.
Key Takeaways
kubectl get pods command is used to check the state of the pod.
Knowledge
Check
Which of the following can be used to check the working of DNS?
2
a. Top command
b. nslookup
a. Top command
b. nslookup
b. --kubelet-certificate-authority
b. --kubelet-certificate-authority
--kubelet-certificate-authority flag is used to provide the apiserver with a root certificate bundle.
Knowledge
Check
Which of the following commands is used to check the existence of the service?
4
b. kubelet-certificate-authority
d. Kube-proxy [flag]
Knowledge
Check
Which of the following commands is used to check the existence of the service?
4
b. kubelet-certificate-authority
d. Kube-proxy [flag]
kubectl get svc hostnames command is used to check the existence of the service.
Knowledge
Check
What is the purpose of fetching the master and cert connectivity status?
5
The master and cert connectivity status is used for fetching logs for pods, attaching to running pods, and
providing the kubelet’s port-forwarding functionality.
Problem Statement: While developing a highly scalable application, real
challenges will come into picture during the deployment of that application
into production or real-time data scenario. Having the application stuck
while working in normal case scenarios in real-time production
environment is one of the biggest drawbacks for any product after
development. Kubernetes plays an important role in dubbing the tool once
your application deployment is in the production environment.