Creating and Managing Resources via the Kubernetes API

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

The Kubernetes API gives you all the tools you need to troubleshoot problematic manifests or generate syntactically correct manifests for deployment. This hands-on lab is designed to challenge you to do both.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Troubleshoot Existing Deployment File

Find the problem with the psdeploy.yaml file and fix it.

Deploy Debugged Manifest

Deploy the corrected manifest to the current cluster.

Create New Deployment Manifest

Create a syntactically correct manifest that uses the nginx:latest image with the name ps2deploy.yaml.

Deploy Newly Generated Manifest

Deploy the new manifest to the current cluster.

Additional Resources

In this scenario, you’re on the DevOps team for a new project and you’re asked to create two deployments for an existing cluster. The manifest for the first deployment, psdeploy.yaml, is already on your system; however, it seems to be faulty, so you need to identify the problem, fix it, and then deploy it. You’ve been asked to create a second deployment, ps2deploy, using an nginx:latest image. You’ll need to create a syntactically correct YAML file and then deploy it.

After you feel you have completed the lab, run the provided script to verify your accomplishments.

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?