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
.