I just created a new cluster using the Google Container Engine with Kubernetes 1.7.5 with new RBAC permissions. I ran into the issue of granting permissions for some of my services, which lead me to the following:
docs to use the container mechanism with the RBAC clause so that the user is given the opportunity to create authorization roles by running the following command
kubectl create clusterrolebinding cluster-admin-binding
However, this fails due to the lack of permissions (which I would assume are the same permissions that we are trying to grant by executing the above command).
Error from server (Forbidden): User "<user-name>" cannot create clusterrolebindings.rbac.authorization.k8s.io at the cluster scope.: "Required \"container.clusterRoleBindings.create\" permission." (post clusterrolebindings.rbac.authorization.k8s.io)
Any help would be greatly appreciated as it blocks me from creating the permissions needed for my cluster services.
source share