Using the Kubernetes API to Identify Objects and Versions

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

To properly work with your current Kubernetes cluster, you need to know not only what resources are available, but their group and version. In this hands-on lab, you’ll use the `kubectl` command as an HTTP client to query the API server and discover all the necessary details.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Review All Resources

Display a list of all API objects available to the current cluster.

List Policy Group Objects

Output only those API objects in the policy group.

Review All Versions of API Objects

Display a list of the versions in use for current API objects, sorted by group.

Additional Resources

In this scenario, your team lead has asked you to identify the current cluster resources with a special focus on the policy group. You've been asked to verify the current version objects in that group, as well as review the overall versions by group to note any resource that does not have a v1 or greater version.

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?