Exploring the Existing Namespaces

Now that we know that our cluster has multiple namespaces, let’s explore them a bit.

Getting the existing namespaces

We can list all the namespaces through the kubectl get namespaces command. As with most other Kubernetes objects and resources, we can also use the shortcut ns instead of the full name.

Get hands-on with 1400+ tech skills courses.