Chapter 9: Namespaces, RBAC, and Multi-Tenancy
⏱️ Total chapter time: ~55 min (25 min reading + 30 min lab)
After this chapter, you will be able to: Organize workloads into namespaces, control access using Roles and RoleBindings, create service accounts for pods, and design a basic multi-tenant cluster layout.
What’s Inside
| Section | Topic | Time |
|---|---|---|
| 9.1 | Namespaces — Cluster Partitioning | ~5 min |
| 9.2 | RBAC — Roles, ClusterRoles, and Bindings | ~8 min |
| 9.3 | ServiceAccounts — Pod Identities | ~6 min |
| 9.4 | Multi-Tenancy Patterns | ~5 min |
| 9.5 | 🔬 Lab: Lock Down a Namespace | ~30 min |
Prerequisites
- Comfortable with kubectl (Chapter 2)
minikube statusshowsRunning