We already learned about Kubernetes namespaces in Chapter 3, Getting Started with Kubernetes, which are used to divide the resources from a cluster into multiple virtual clusters. Namespaces make each group share the same physical cluster with isolation. Each namespace provides the following:
- A scope of names; the object name in each namespace is unique
- Policies to ensure trusted authentication
- The ability to set up resource quotas for resource management
Now, let's learn how to use context to switch between different namespaces.