DEV Community

Discussion on: Provisioning Users and Groups for Kubernetes

alejandrodnm profile image
Ad.n • Edited on

Hi, I think there is an error when you create the Role, you specify the namespace: default but the namespace needs to match the one in the RoleBinding (namespace: $USERNAME).

I was getting an error before I changed it.

From the docs:

A RoleBinding may reference any Role in the same namespace. Alternatively, a RoleBinding can reference a ClusterRole and bind that ClusterRole to the namespace of the RoleBinding.

Thanks for the article, super helpful. Cheers.