Solutions to practice test - RBAC
Run the command kubectl describe pod kube-apiserver-controlplane -n kube-system and look for –authorization-mode
Run the command kubectl get roles
Run the command kubectl get roles –all-namespaces
Run the command kubectl describe role kube-proxy -n kube-system
Check the verbs associated to the kube-proxy role
Which of the following statements are true?
Run the command kubectl describe rolebinding kube-proxy -n kube-system
Run the command kubectl get pods –as dev-user
Answer file located at /var/answers
New roles and role bindings are created in the blue namespace. Check it out. Check the resourceNames configured on the role
View the answer file located at /var/answers/dev-user-deploy.yaml