Can i give apiGroups name during role creation without yaml "kubectl create rol . . .

sunil:
can i give apiGroups name during role creation without yaml “kubectl create role testing -n blue --resource=deployments --apiGroups=apps,extensions --verb=create”

Tej_Singh_Rana:
Hello, @sunil
If it’s listed in kubectl create role --help then sure we can use that flag (--apiGroups).

sunil:
Thanks i dont see it in help but after creation it comes in in yaml

Vijay:
@sunil bookmark this page bro… could help you in exam
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands

sunil:
thanks bro