Mudit:
Hi @Tej_Singh_Rana, @Vijin Palazhi,
In “Practice Test - RBAC”, even after editing the ‘developer’ role correctly, still not able to get pods as dev-user. And still the results of the questions is successful. Please suggest.
root@controlplane:~# k -n blue describe role developer
Name: developer
Labels: <none>
Annotations: <none>
PolicyRule:
Resources Non-Resource URLs Resource Names Verbs
--------- ----------------- -------------- -----
pods [] [*dark-blue-app*] [get watch create delete]
root@controlplane:~#
root@controlplane:~# k -n blue describe <http://rolebindings.rbac.authorization.k8s.io|rolebindings.rbac.authorization.k8s.io>
Name: dev-user-binding
Labels: <none>
Annotations: <none>
Role:
Kind: Role
Name: developer
Subjects:
Kind Name Namespace
---- ---- ---------
User dev-user
root@controlplane:~#
root@controlplane:~#
root@controlplane:~# k -n blue auth can-i get pods --as dev-user
no
root@controlplane:~#