Kubernetes (K8s) (50 Qs)•Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)
Architecting an Enterprise Kubernetes Platform: The 10 Golden Production Commandments.
senior LevelMost AskedFormsSecurity & AuthKubernetes
In Simple Words:
- Never deploy raw Pods: Always use Deployments or StatefulSets.
- Explicit Resource Requests & Limits: Every single container must define both CPU and memory requests.
- Readiness and Liveness Probes: Mandatory on all production workloads.
- Enforce Read-Only Root Filesystems & Non-Root Users: No containers running as UID 0.
- Attach PodDisruptionBudgets (PDB) to all critical applications.
- Use Dedicated Namespaces with NetworkPolicies: Default-deny ingress across all microservice boundaries.
- Node Affinity & AZ Anti-Affinity: Ensure multi-replica deployments spread across different Availability Zones.
- Automated Secret Rotation: Use External Secrets Operator or HashiCorp Vault.
- Ephemeral Storage Limits: Prevent host disk full crashes.
- GitOps Single Source of Truth: Ban direct
kubectl applyin production; enforce all state declarations via ArgoCD or Flux.