Hey there! Welcome to the *Creating and Deleting Users in OpenShift 4* lab. Here’s the scenario! You have set up the cluster to use the HTPasswd Identity Provider. It is now time to set up the first batch of users on the cluster to work on the Double Tap mobile game being developed. You are also finally getting around to setting up the new cluster admin login so you can disable the temporary `kubeadmin` login for security purposes.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Installation of CodeReady Containers
Note: If you have taken any of the other labs in the associated course and already installed CodeReady Containers, please move on to the Lab Setup objective. If not, then proceed with this objective.
If you do not already have a Red Hat login, register at https://www.redhat.com.
- Make the
OpenShift_CRC
working directory. - Download the version of the OpenShift on CodeReady Containers binary for the version of Operating System you are running.
- Install OpenShift on CodeReady Containers.
- Make the
- Lab Setup
Note: If you have done the labs in the course before this one, you can skip this step.
Download and run the lab setup script:
- Download the lab setup script from https://raw.githubusercontent.com/linuxacademy/content-openshift-2020/master/lab-scripts/lab2setup.sh
- Run the
lab2setup.sh
script
- Add Users to HTPasswd Identity Provider Cluster
Add the following users to the HTPasswd Identity Provider configured cluster with the password
doubletap
:columbus
wichita
littlerock
tallahassee
- Grant Users Cluster Roles Based on Job Duties
Grant each user the proper cluster role based on their job duties.
tallahassee
– Tester
columbus
– Lead Developer
littlerock
– Project Manager
wichita
– DeveloperRoles to assign:
admin
edit
view
basic-user
- Grant Cluster Admin Role to a User and Disable kubeadmin
- Grant the
admin
user thecluster-admin
role to become the cluster admin. - Log in to the cluster as the
admin
user. - Disable the
kubeadmin
login.
- Grant the