Creating a Manifest with the Kubernetes API

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

To manage your Kubernetes cluster properly and efficiently, you’ll need to create and apply a range of API objects through one or more manifests. The Kubernetes API makes it possible to generate syntactically correct YAML through use of the `–dry-run` flag. In this hands-on lab, you’ll experience that procedure and then verify the legitimacy of the generated code.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Generate the Manifest

Run the command to output the pod manifest to a YAML file.

Apply the Manifest

Create the pod through the proper command.

Verify Pod Creation

Confirm that the pod has been created and is running.

Additional Resources

In this scenario, you have been asked to create a new YAML manifest for a pod named pspod using the image nginx:latest and the label web. Naturally, you'll also need to test your manifest by applying the manifest and confirm the operation.

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?