From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Namespaces

Namespaces

- An important component of Kubernetes are the namespace. So Kubernetes namespace resources leverage Linux kernel namespaces to provide a resource isolation. Different namespaces can be used to strictly separate between customer resources and thus enable multi-tenancy. Namespace are used to apply different security related settings as well. Like role-based access control, that's about permissions or Ouota, which is about restrictions. By installing complex Kubernetes applications in their own namespace, managing them is easier. Why is that? Well, in a complex application you might have multiple resources that are related to one another, and if you run all your applications in the same namespace, well in the end you'll have many of them and it'll become difficult to manage all of them. If you want to show resources in all namespace, use kubectl get on anything with the minus uppercase A option. And if you want to run resources in a specific namespace, use kubectl run followed by…

Contents