Skip to main content
RunBook Academy

← All checklists in Kubernetes

Before deploymentkubernetes-security-readiness

Kubernetes Security Checklist

14 items ·9 critical ·5 warn ·0 info

How to use this checklist

This is the baseline a cluster should meet before it holds anything that matters. It is deliberately shorter than a compliance framework and deliberately harder to pass on a default install.

Mark an item N/A when it genuinely does not apply, and write down why. An unexplained N/A is the most common way a checklist stops working.

Sign-off

Every critical item must pass. A failing critical item blocks the deployment or the maintenance window; it is not a note for later. Record the date, the reviewer, and the disposition of every item that did not pass.

Critical9 items

  1. kubectl get ns -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.labels.pod-security\.kubernetes\.io/enforce}{"\n"}{end}'
  2. kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{.metadata.name}{"\t"}{.spec.hostNetwork}{"\n"}{end}' | grep true
  3. kubectl get clusterrolebindings -o json | jq -r '.items[] | select(.roleRef.name=="cluster-admin") | .metadata.name'

Warning5 items

  1. kubectl get validatingwebhookconfigurations