kmkale:
I have a question about groups in k8s. I have not seen group creation in any of the lectures so far. How is it done? Or are we limited to built in groups like system:… ?
Mohamed Ayman:
what u re taking about? Is it a group in the role binding or what?
kmkale:
I want to know how to create custom groups
Mohamed Ayman:
Still not clear for me
kmkale:
That means I do not have enough knowledge to explain my question. I will come back to it after some more study. Thanks.
kmkale:
OK, so in this example from the RBAC practice test,
controlplane $ k -n kube-system describe <http://rolebindings.rbac.authorization.k8s.io|rolebindings.rbac.authorization.k8s.io> kube-proxy
Name: kube-proxy
Labels: <none>
Annotations: <none>
Role:
Kind: Role
Name: kube-proxy
Subjects:
Kind Name Namespace
---- ---- ---------
Group system:bootstrappers:kubeadm:default-node-token
The Subjects
refer to a kind Group
. Which in this instance is system:bootstrappers:kubeadm:default-node-token
If I want to create a group called custom:team-1
how do I do that?