Lab trackOpenShift Labs
OpenShift hands-on labs
Ten labs on a real OpenShift cluster of your own. Deploy and build applications, then run the cluster: users, access, quotas, security constraints, network isolation and operators.
- 10 labs
- 5 h
- Intermediate
- Paid
This lab is part of a paid track. The plan opens every lab in it.
- A real environment in your browser
- You run the commands yourself
- Your result is checked automatically
Labs in this track
Deploy on OpenShift
4 labs1.9 h
- Your First App on OpenShiftFree previewBeginner25 minStart
- Build from Source with S2IFree previewBeginner30 minStart
- Configure an App with ConfigMaps and SecretsIntermediate30 minUnlock
- Secure a Route with TLSIntermediate30 minUnlock
Administer OpenShift
6 labs3.1 h
- Add Users with htpasswdIntermediate30 minUnlock
- Groups, Roles and Self-ProvisioningIntermediate30 minUnlock
- Quotas and Limit RangesIntermediate30 minUnlock
- Security Context ConstraintsAdvanced30 minUnlock
- Isolate a Project with NetworkPolicyAdvanced35 minUnlock
- Install an Operator from OperatorHubAdvanced30 minUnlock
About this track
A lab-only path through OpenShift, on a cluster that is yours for the length of each lab.
Show more
Every lab starts a single-node OpenShift cluster (OKD, the community distribution) and a workstation with the oc client already installed. You work from that workstation in the browser, the way an administrator works from a jump host. The first section is the developer's side: a project, an application from an image, a build from source, configuration, and a Route served over TLS. The second is the administrator's: who may log in, what they may do, how much a project may consume, what a container is allowed to be, which traffic gets in, and how operators extend the cluster.
There are no video lectures and no reading-only lessons. Every lab checks what you actually did on the cluster and tells you what is still missing.
What you'll learn
- Create projects, run applications from images and publish them on Routes
- Build an image from a Git repository with Source-to-Image and roll out a new build
- Keep configuration and credentials out of the image with ConfigMaps and Secrets
- Serve an application over HTTPS with an edge-terminated Route and your own certificate
- Add users to the htpasswd identity provider without locking anyone out
- Grant access through groups and roles, and control who may create projects
- Cap a project with a ResourceQuota and give containers defaults with a LimitRange
- Find out why a container is refused and let it run with the narrowest Security Context Constraint
- Isolate a project with NetworkPolicy and prove the rest is blocked
- Install an operator through the Operator Lifecycle Manager and use the API it adds
Prerequisites
Comfort in a Linux shell, and the Kubernetes basics: pods, deployments, services and reading YAML. The Kubernetes hands-on labs cover all of it.
Nothing to install. The cluster, the terminal and the editor are in the browser.
Who it's for
Kubernetes users moving to OpenShift, administrators who will run a cluster at work, and anyone preparing for a hands-on OpenShift administration exam who wants the practice on a live cluster.
FAQ
How long does a lab take to start? Several minutes. A whole OpenShift cluster boots for you each time; the lab opens when it is ready.
Can I always get a cluster? The number of clusters running at once is limited. When all are in use you are asked to try again in a few minutes.
How many times can I launch a lab? Ten launches per lab, one at a time.
Is there a web console? The labs are done with oc in the terminal, which is what the exam and most day-to-day administration use.
Do I have to take the labs in order? Each lab stands on its own cluster, but the second section assumes the first.