- Lab
- A Cloud Guru
EX280 Practice Exam
The Red Hat Certified Specialist in OpenShift Administration exam tests your knowledge, skills, and ability to create, configure, and manage a cloud application platform using Red Hat OpenShift Container Platform. Now that you've gone through all the objectives, it is time to test your newfound knowledge on the practice exam to prepare for the real exam and hopefully guide you to earning your Red Hat Certified Specialist in OpenShift Administration! In this lab, you will be asked to download OpenShift on CodeReady Containers and set up your cluster for the exam. After that, you will perform a series of tasks similar to what you will be asked to do in the actual exam. Good luck, and please use this practice exam as many times as you need before taking the exam. *This course is not approved or sponsored by Red Hat.*
Path Info
Table of Contents
-
Challenge
Install OpenShift on CodeReady Containers
This must be installed on your laptop or desktop since we are unable to run the cluster in our lab environment.
- Create your Red Hat login, or just log in.
- Download CodeReady Containers.
- Set up CodeReady Containers to use 12 GB of memory.
- Enable cluster monitoring.
- Start your cluster and enable the OpenShift client tools.
-
Challenge
Set Up htpasswd as the Identity Provider and Add Users and Permissions
- Create htpasswd file with these users with the password
doubletap
:columbus
wichita
littlerock
tallahassee
admin
- Create HTPasswd Secret from file.
- Download the HTPasswd Custom Resource (using the link provided on the lab page).
- Add the name of your HTPasswd Secret to the file.
- Apply your custom resource to your cluster.
- Create a project called
zLand
. - Give
columbus
admin permissions to thezLand
project. - Give
wichita
andlittlerock
edit permissions to thezLand
project. - Give
tallahassee
basic user permissions to thezLand
project. - Give
admin
cluster admin permissions. - Remove the
kubeadmin
user from the cluster.
- Create htpasswd file with these users with the password
-
Challenge
Role-Based Access and Groups
- Create a project called
twinkies
. - Create a group called
yum
. - Add
columbus
,wichita
, andlittlerock
to theyum
group. - Grant admin access to the
yum
group for the projecttwinkies
. - Create a custom resource that allows
tallahassee
to get pod information from thetwinkies
project and call itgettwinkies
.
- Create a project called
-
Challenge
Quotas and Resource Limits
- Download the quota and resource limit templates (using the links provided on the lab page).
- Modify the
quota.yaml
file with the following values:- Max number of pods = 3
- Max amount of memory = 2 GB
- Max number of replication controllers = 2
- Max number of services allowed = 8
- Create quota and apply it to the
zLand
project. - Modify the
resource_limits.yaml
file with the following values:- Max number of pods = 4
- Requested cpus = 1
- Requested memory = 1 GB
- Requested Ephemeral storage = 2 GB
- Limit cpus to 4
- Limit memory to 4 GB
- Limit Ephemeral storage to 8 GB
- Create resource limit and apply it to the
twinkies
project.
-
Challenge
Application Creation and Management
Note: Use https://github.com/sclorg/cakephp-ex example app to create applications
- Create
test-app1
,test-app2
,test-app3
,test-app4
, andtest-app5
projects. - Create an application named
cake
and make sure it is accessible to the outside world in projecttest-app1
. - Create an application using a route called
twinkiesforall
in thetest-app2
project. - Create an application using a secured route called
mytwinkie
in thetest-app3
project. Use self-signed cert from lab repo to secure the route (the links are provided on the lab page). - Create an application that can use the
dont-tell
secret projecttest-app4
. - Create a secret called
dont-tell
in thetest-app4
project. Download thesecret.yaml
file (using the link provided on the lab page).
- Populate with the user
dXN1ci1uYW11
and passworddGHcz4dvCmQ=
.
- Create a service account called
madison
in thetest-app5
project. - Create an application that can be edited by the
madison
service account in thetest-app5
project. - Manually scale the application in the
test-app2
project to 2 pods. - Set an autoscaler for min of 1 pod and a max of 3 pods based of 75% CPU utilization for the application in the
test-app5
project.
- Create
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.