CertGrid CertGrid
Hands-on Lab·Kubernetes and Cloud Native Associate

RBAC: Roles, ServiceAccounts and Bindings

A ServiceAccount starts able to do almost nothing. Four commands give it exactly one permission - and the same check in a different namespace still answers no, because a Role stops at its namespace edge.

Security and the 4C Model Guide 25 of 46 Beginner

Written against the versions above. The restricted profile tightens over time, which is what `enforce-version=latest` opts into. Pinning a version is the alternative and has its own cost.

Pod Security admission is built into the API server, so nothing needs installing for any of this.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE02192.168.0.177Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. What a new ServiceAccount can already do

  2. Confirm it cannot do the thing

  3. A Role and a RoleBinding

  4. Yes here, no there

Official sources