easykubectl

Create a Role that allows getting and listing pods in the current namespace

command

kubectl create role POD_READER --verb=get,list --resource=pods

also accepted

kubectl create rolekubectl create role POD_READER --verb

Command breakdown

Part of the Kubernetes CLI (kubectl) — kubectl Advanced category.

kubectlcreaterolePOD_READER--verb=get,list--resource=pods
FlagPurpose
--verbSet to: get,list
--resourceSet to: pods

Test your recall — not just your reading.

Practice with interactive quiz →