Watching a Resource Change through the Kubernetes API

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

The Kubernetes API makes it possible to keep an eye out for any updates affecting a specified resource. In this hands-on lab, you’ll use the `–watch` flag to follow the pod creation process.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Gather Pod Information

Discover the available pods.

Monitor Pods for Updates

Use the watch flag to monitor the pods’ resource.

Create New Pod and Verify Monitoring

Apply the provided YAML manifest and review streaming output.

Additional Resources

In this scenario, you’ve been asked to take over pod management for your team’s Kubernetes cluster. You want to familiarize yourself with the inner workings of the API server, so you decide to review the steps taken when a new pod is created. You decide to use the Kubernetes API special verb watch.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?