Get an introduction to liveness and readiness probes in Kubernetes and how you can use your health checks to help Kubernetes handle the lifecycle of your application.
- [Instructor] Kubernetes is a declarative system. … This means you don't have to write a full script … to tell it how to stand up your applications. … Instead you tell it your desired end state … and Kubernetes will make it happen. … One of the most powerful things about Kubernetes … is its self-healing feature. … As soon as one of your applications goes down, … you want it to be replaced with a healthy one. … You could do this by manually monitoring the system, … but that would use a lot of time and money. … Instead, it's reasonable to expect your platform … to do that for you. … But how does a system like Kubernetes know … when an application is unhealthy? … That's where liveness checks come in. … When you create a pod specification for Kubernetes, … you should provide a liveness probe. … This is an endpoint that Kubernetes will hit, … and if it gets (mumbles) 100 response, … it knows the app is working. … A liveness endpoint is defined like this in YAML. … You can provide a port path and some HTTP headers. …
- Installing Docker
- Running an application with Docker
- Deploying an application to Kubernetes
- Adding custom metrics
- Collecting and visualizing metrics
- Enabling distributed tracing