easykubectl

Bind a Role to a user so that user gains those permissions in the current namespace

command

kubectl create rolebinding ALICE_READER --role=pod-reader --user=alice

also accepted

kubectl create rolebindingkubectl create rolebinding ALICE_READER --role

Command breakdown

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

kubectlcreaterolebindingALICE_READER--role=pod-reader--user=alice
FlagPurpose
--roleSet to: pod-reader
--userSet to: alice

Test your recall — not just your reading.

Practice with interactive quiz →