← Learn
Dangerous
kubectl create clusterrolebinding sa-admin --clusterrole=cluster-admin --serviceaccount=default:default

cross-platform · yaml · Expert

Grants cluster-admin to the default service account, which every pod in that namespace uses unless told otherwise. Any workload in the namespace, including a compromised one, immediately inherits full control of the cluster.

Signals to notice

  • cluster-admin bound to a default service account
  • Every pod in the namespace inherits it
  • Reads like ordinary RBAC configuration

Think you can spot these under time pressure?

Start Training

More Kubernetes