From the course: Cloud Native Development with Node.js, Docker, and Kubernetes
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
See it in Kubernetes
From the course: Cloud Native Development with Node.js, Docker, and Kubernetes
See it in Kubernetes
- [Instructor] In the previous video we added liveness and readiness endpoints to our application. And then we rebuilt our docker image, and gave it a new version of 1.1.0. Now, we're going to need to deploy that to kubernetes, and see our readiness and liveness probes in action. The first thing we need to do, is go into our project go into the chart directory, and look at your values.yml. Let's start by updating the version to 1.1.0. And that's going to pull in our new docker image. The second thing we need to do is then enable the readiness and liveness probes. To do that, we uncomment the commented out sections. And then delete the examples that are blank. This is now enabled a readiness probe on /ready on port 3000, and a liveness probe on /Live, on port 3000. It's also setup time to wait before it makes a request to see whether the probe is responding. And a period time between requests. We now need to save that file and then redeploy our application. Let's first make sure we're…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.