Give a ServiceAccount Limited Access

Write a Role, bind it, and then prove the boundary by showing everything the identity still cannot do.

Skill labbeginner~25 minPro

What you'll do

  • ✓Write a Role that lists resources and verbs
  • ✓Attach it to an identity with a RoleBinding
  • ✓Test permissions the way an operator does, with kubectl auth can-i
  • ✓Recognise subresources like pods/log as separate permissions

Lab outline

  1. 01A Role is a list of verbs
  2. 02A binding attaches it to an identity
  3. 03Least privilege is the denials

Before you start

  • Knowing what a ServiceAccount is

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Kubernetes labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Give a ServiceAccount Limited Access — Kubernetes lab | Kube Labs