Interview Prep/Kubernetes/Security, RBAC and policy

How do you scan for vulnerabilities in a running cluster and in CI?

IntermediateScenarioSecurity, RBAC and policy
Answer

Situation read → Leadership wants continuous scanning.

What I'd do →

  1. In CI scan images with Trivy or Grype and fail on critical issues
  2. In cluster run the Trivy Operator for continuous reports
  3. Scan manifests with kubescape, kube-linter or Checkov
  4. Check CIS benchmarks with kube-bench
  5. Track fixes by SLA

Why → Shift left to catch issues early and scan runtime for newly published CVEs.

Interview tip → Mention that results need triage, not just reports.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security, RBAC and policy