PART 5: ARCHITECTURE & STRATEGY
21. Cluster Topology Patterns
Single Cluster (Small Teams)
text
┌─────────────────────────────────────────────────────────────┐
│ Single Cluster │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ dev ns │ │ staging ns │ │ prod ns │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────┘
Pros: Simple, cheap.
Cons: Single point of failure, noisy neighbors.
Multi-Cluster (Production)
text
┌─────────────────────────────────────────────────────────────┐
│ Cluster: dev Cluster: staging Cluster: prod │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────┐ │
│ │ dev │ │ staging │ │ prod │ │
│ └──────────────┘ └──────────────┘ └──────────┘ │
└─────────────────────────────────────────────────────────────┘
Pros: Isolation, safer upgrades.
Cons: More overhead.
Multi-Region (Global)
text
┌─────────────────────────────────────────────────────────────┐
│ Region A Region B Region C │
│ ┌──────────────┐ ┌──────────────┐ ┌───────┐│
│ │ Cluster │ │ Cluster │ │Cluster││
│ │ (us-east) │ │ (eu-west) │ │(ap) ││
│ └──────────────┘ └──────────────┘ └───────┘│
│ │ │ │ │
│ └───────────────────────┴─────────────────────┘ │
│ Global Load Balancer │
└─────────────────────────────────────────────────────────────┘
22. Multi-Tenancy Strategy
| Model | Isolation | Best For |
| Namespaces | Logical | Internal teams |
| vCluster | Virtual clusters | Strong isolation on shared clusters |
| Separate clusters | Physical | External customers, compliance |
| Capsule | Hierarchical namespaces | Enterprise multi-tenancy |
Recommendation:
- Internal teams → Namespaces + RBAC + NetworkPolicies + ResourceQuotas
- External customers → vCluster or separate clusters
23. Compliance & Security
| Framework | K8s Requirement |
| PCI-DSS | Network segmentation, RBAC, audit logs |
| HIPAA | Encryption, audit, access controls |
| SOC2 | Change management, monitoring |
| FedRAMP | FIPS 140-2, hardened configs |
CIS Kubernetes Benchmark key items:
- Control plane hardening
- etcd encryption
- RBAC enabled
- Audit logging
- Pod Security Standards
- NetworkPolicies
- Image scanning
- No privileged containers
1:1 copy of the class Google Doc, code in code blocks.