How to create multiple admin users for kubernetes cluster?

5/16/2018

I want to set up a kubernetes cluster that supports RBAC and have multiple admin users. If I create an user like this, I end up creating ordinary user where I need to specify individual capabilities using the ROLES config file. Instead, how do I create multiple users having admin privileges?

-- Holmes.Sherlock
kubernetes

1 Answer

5/17/2018

Here is an easier way to do it. https://kubernetes.io/blog/2017/10/using-rbac-generally-available-18/

kubectl create clusterrolebinding cluster-admin --clusterrole=cluster-admin \
--user=user1 --user=user2 --group=group1
-- James Knott
Source: StackOverflow