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

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

This guide includes

Use this when a workload needs API access and you want to grant the least that still works. This matters because a ServiceAccount starts able to do almost nothing, and every permission after that is two objects - one describing what may be done, one describing who may do it.

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