Working with Kubernetes Namespaces

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Namespaces are a central component of any Kubernetes infrastructure. This lab will give you the opportunity to work with namespaces in a functioning cluster. You will be able to practice the process of creating, using, and navigating Kubernetes namespaces.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the `dev` Namespace

Log in to the control plane node. Create a namespace in the cluster called dev.

Get a List of the Current Namespaces

List all of the current namespaces in the cluster. Save this list to the file /home/cloud_user/namespaces.txt.

Find the `quark` Pod’s Namespace

Locate a pod called quark. Determine which namespace the pod is in, and save the name of that namespace to the file /home/cloud_user/quark-namespace.txt.

Additional Resources

You are working for BeeBox, a subscription service company that provides weekly shipments of bees to customers. The company is in the process of containerizing their infrastructure and running their software on Kubernetes. As part of this process, the company is working on determining what namespaces it will need in the Kubernetes cluster.

You have been asked to access the cluster and perform some maintenance tasks related to the cluster's namespaces.

  • The dev team would like a namespace they can work in that is separate from namespaces used to run production workloads. Create a new namespace called dev.
  • One of the members of your security team would like to audit the namespaces that currently exist in the cluster. Get a list of the current namespaces and save it to a file located at /home/cloud_user/namespaces.txt on the control plane node.
  • Someone on the team created a pod with the name quark, but they are not sure which namespace it is in. Determine which namespace this pod is in, and save the name of that namespace to a file located at /home/cloud_user/quark-namespace.txt on the control plane node.

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

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