Create a role

Learning Kubernetes · 4:34

Listen on 93

Lyrics

[Verse 1]
In Kubernetes land where pods need care
Permissions matter everywhere
We need a role to grant access right
Let's build one up and see the light

When you want to watch and list and get
Create a role, don't you forget
The kubectl command will pave the way
To secure resources every day

[Chorus]
Create a role, name it well
Verb dash dash verb, can you tell?
Get and list and watch them all
Resource pods will heed the call
Namespace flag to set the place
Role-based access, steady pace
Create a role, make it right
Kubernetes security shining bright

[Verse 2]
Start with kubectl, that's your tool
Create a role, follow the rule
Give it a name that makes sense clear
Something admins will hold dear

The verbs you choose define the power
Get means read in any hour
List shows all the pods in sight
Watch sees changes day and night

[Chorus]
Create a role, name it well
Verb dash dash verb, can you tell?
Get and list and watch them all
Resource pods will heed the call
Namespace flag to set the place
Role-based access, steady pace
Create a role, make it right
Kubernetes security shining bright

[Bridge]
Resource flag points to pods
That's the target for your mods
Namespace flag sets the boundary
Where this role will have authority

Double dash before each flag
Makes the syntax never lag
Commas separate every verb
Clean and simple, don't disturb

[Chorus]
Create a role, name it well
Verb dash dash verb, can you tell?
Get and list and watch them all
Resource pods will heed the call
Namespace flag to set the place
Role-based access, steady pace
Create a role, make it right
Kubernetes security shining bright

[Outro]
Now you know the role creation way
Practice this command every day
Kubectl create role in hand
Security across the land

← List storage classes | View cluster roles and roles →