Create initial users after a management cluster bootstrap
Once you bootstrap your management cluster, create Keycloak users for access to the MOSK management console.
Mirantis recommends creating at least two users, user and operator,
that are required for a typical MOSK deployment.
Create a user for access to the MOSK management console
./container-cloud bootstrap user add \
--username <userName> \
--roles <roleName> \
--kubeconfig <pathToMgmtKubeconfig>
Note
You will be asked for the user password interactively.
Add several roles to one user
To add several roles of one level to one user, use a comma. For example:
./container-cloud bootstrap user add --username test --roles reader,global-admin
The command above applies the m:kaas@reader and m:kaas@global-admin
roles to the user.
If one of roles must be namespaced, for example, to create
m:kaas:default@reader and m:kaas@global-admin, use the Keycloak Admin
Console or IAM API directly by creating IAMRoleBinding or
IAMGlobalRoleBinding. For more information, see:
Note
Adding several roles of different levels to one user is not supported during creation of initial users.
Delete a user
To delete a user, run the following command:
./container-cloud bootstrap user delete --username <userName> --kubeconfig <pathToMgmtKubeconfig>