Hello Experts, I am doing RBAC exercise - My question is do we have any simple t . . .

Shivesh:
Hello Experts,
I am doing RBAC exercise -
My question is do we have any simple technique to get the yaml file.
I see answer is available here
/var/answers

Create the necessary roles and role bindings required for the dev-user to create, list and delete pods in the default namespace.

Use the given spec
Role: developer
Role Resources: pods
Role Actions: list
Role Actions: create
RoleBinding: dev-user-binding
RoleBinding: Bound to dev-user

Regards
Shivesh

Sameer Bhatia:
A simple way is to execute the imperative command with --dry-run=client -o=yaml and redirect to a file.

kubectl create role -h will describe all the options.

Shivesh:
Thanks Sameer,