A critical CVE affects the Kubernetes version running on all your clusters. How do you plan the upgrade under pressure?
AdvancedScenarioKubernetes Security
Answer
Situation read → Assess exploitability first, apply mitigations, then upgrade in a controlled order.
What I'd do →
- Read the advisory: which component, what preconditions (feature enabled, specific permissions)? Check if our config is affected.
- Apply interim mitigations from the advisory (disable a feature gate, restrict RBAC, admission policy).
- Check API deprecations:
kubentorpluto detect-helm, and add-on compatibility (CNI, CSI, ingress). - Upgrade a non-prod cluster, run smoke tests, then prod control plane, then node groups with PDBs respected.
- Track with a change ticket and report status to security.
Why → Rushed upgrades cause outages; mitigations buy time to upgrade safely.
Interview tip → Always show you check exploitability before panicking.
More on Kubernetes Security
What are the 4Cs of cloud native security?BeginnerWhat happens to a request between `kubectl apply` and etcd from a security point of view?IntermediateExplain Role, ClusterRole, RoleBinding and ClusterRoleBinding.BeginnerHow do you check what a user or service account is allowed to do?BeginnerWhich RBAC permissions are effectively cluster-admin in disguise?AdvancedHow do service account tokens work now, and what is `automountServiceAccountToken`?Intermediate