Problem Statement
You are reviewing a managed Kubernetes cluster. What quick security checks do you do first?
Explanation
Verify control-plane version and auto-upgrade. Check node OS patching and minimal images. Ensure RBAC is on and audit logs are shipped. Enforce Pod Security Standards and NetworkPolicies. Lock cloud metadata access from pods. Confirm private endpoints and restricted API access. Review IAM roles for service accounts and restrict wildcard permissions.
Code Solution
SolutionRead Only
kubectl version --short kubectl get ns --show-labels kubectl get networkpolicy -A
