I got some question for RBAC in K8s cluster. I have setup one master, and 2 worker nodes(w1,w2).
Question 1:
I can execute the kubectl in master VM (SSH login to the master VM)to retrieve all information of the cluster. So I supposed that there should be a role for the master VM as a admin role in cluster. But I can’t find the role by executing “kubectl get role -A”. Does there any role is created for the master VM?
Me too new to K8s but I’ll try to explain what I understood
All the defaults roles/Clusterroles are created under kube-system namespace automatically at the time of installation, there are few clusterroles/bindings related to admin.
Note that the admin user is part of the system:masters group. This is how we are able to perform any administrative operations on Kubernetes cluster using kubectl utility.
Experts please correct me if i’m wrong anywhere. Thanks