Hey there! Welcome to the *Creating a Service Account in OpenShift 4* lab. Here’s the scenario! The developers need a service account created so they can use it for API access to make changes to resources in the project.
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/lab4setup.sh
- Run the
lab4setup.sh
script
- Create the Service Account
- Move to the
doubletap
project. - Create a service account named
homer
. - Grant the
homer
service account the edit cluster role.
- Move to the