Exploring the Existing Namespaces
Explore and discuss the existing namespaces briefly.
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.
Press + to interact
kubectl get ns
The output is as follows:
Press + to interact
NAME STATUS AGEdefault Active 23mkube-node-lease Active 23mkube-public Active 23mkube-system Active 23m
We can see that three namespaces were set up automatically when we created the cluster.
The default
namespace
The default
namespace is the one we’ve used throughout so far. If we do ...
Access this course and 1400+ top-rated courses and projects.