Basic troubleshooting techniques

- [Instructor] Sometimes things don't work as you expect,…and you have to take a closer look to debug issues…or understand what's going on.…There are three techniques I use from a day to day basis…when I work with Kubernetes,…so let me show you what these are.…Let's look at this example scenario…where we have a bad helloworld deployment…which has zero available pods,…and running a kubectl get pods command returns the bad pod…with zero pods in ready status where the status…of error pull image.…What do you do in this scenario…or how do you debug the situation?…I clear my screen.…

You can do a kubectl describe deployment…bad-helloworld-deployment,…and this gives you the description of the entire deployment.…As you can see over here, we have information about…the specific deployment, pod template, conditions,…replica set information, and under events it says,…"Scaled up replica set bad-helloworld-deployment to 1."…So from a deployment perspective,…there doesn't seem to be anything going on.…

Let's look at it from a pod perspective.…

Resume Transcript Auto-Scroll

Author

Released

1/22/2018

Kubernetes is a core tool in DevOps, and is the world's most popular open-source container orchestration engine. It offers the ability to schedule and manage containers (Docker or otherwise) at scale. This course introduces developers, DevOps engineers, and IT pros to Kubernetes, and offers a high-level discussion of orchestration and distributed systems. First, learn how to get a Kubernetes environment up and running on Mac or Windows using Minikube, and understand the components for Kubernetes. Next, deploy a sample Kubernetes application, and manage it using the Kubernetes dashboard. Instructor Karthik Gaekwad also shows how to deploy a more complicated application with a database and APIs. Then learn how to run jobs and cron jobs. Finally, explore more advanced topics on Kubernetes, including production deployments, namespaces, monitoring and logging, and authentication and authorization.