Need some help, ``` ╰─ k create role-binding ex2-rolebinding-rbac --role=ex2-r . . .

ameya agashe:
Need some help,


╰─ k create role-binding ex2-rolebinding-rbac --role=ex2-role-rbac --serviceaccount=job-inspector                                                                                                             ─╯
Error: unknown flag: --role
See 'kubectl create --help' for usage.

There is no example on kubernets.doc as well. How to solve such question in exam?

Николай Бабич:

ameya agashe:
yes I know that but what are the correct switches for the command how do we know that in exam?

Николай Бабич:

Николай Бабич:
in example you used role-binding, correct is rolebinding

ameya agashe:
Man , that is a razor sharp! Ty.
Need to be diligent

unnivkn:
Hi @ameya agashe fyr: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-rolebinding-em-