Course · Training · Workshop

Hands-on OpenShift

Two or three days hands-on with Red Hat OpenShift: deploy applications with oc and the web console, expose them through Routes, secure them with RBAC and SCCs and troubleshoot failures in the cluster.

Your organisation runs OpenShift or is introducing it, and your background is Linux servers, virtual machines or upstream Kubernetes. Day-to-day work then raises concrete questions: why does a container image fail to start on OpenShift although it runs elsewhere? When do you use a Route and when an Ingress? What do BuildConfig and ImageStream do, and who may do what in which project? This course takes you through the platform step by step. You start with containers, Podman and the Kubernetes fundamentals, then deploy applications with oc and the web console, expose them through Services and Routes, give them storage, ConfigMaps and Secrets and scale them. You build images with Source-to-Image and BuildConfigs, work with Operators and Helm and fix prepared failures in pods, probes and services. In the platform operations part you install a Single Node OpenShift, manage cluster capabilities and apply RBAC, Security Context Constraints and Network Policies. Where OpenShift 4 releases differ, we show the current approach and the migration path, for example from DeploymentConfig to Deployment and from OpenShift SDN to OVN-Kubernetes. At the end you have built an application with a database on OpenShift yourself, from source code to Route, and you narrow down problems in your own cluster with logs, events and the console.

What participants say

Before this OpenShift course, I had no idea how to work with it. The training opened my eyes and showed me how all the pieces fit together. The mix of theory and hands-on practice was excellent, and I really value that the course materials remain available afterwards.
Simon
VTG
The OpenShift course was incredibly helpful and well-structured. It not only reinforced our existing knowledge but also provided practical insights that we were able to apply directly to our current projects. A great resource for anyone looking to deepen their understanding of OpenShift.
Mischa
Der OpenShift-Kurs war sehr praxisorientiert und klar strukturiert. Durch die Kombination aus theoretischem Hintergrund und zahlreichen Hands-on-Übungen konnte ich das Gelernte direkt anwenden und verstehen, wie OpenShift eingesetzt wird. Besonders positiv war die kompetente und engagierte Kursleitung, die auch auf individuelle Fragen eingegangen ist. Insgesamt eine sehr empfehlenswerte Schulung, die mir den Einstieg in OpenShift deutlich erleichtert hat.
Roman
UX Spezialist, VTG

These customers booked courses in the same topic cluster.More customers →

Content

This training is for teams that run applications on OpenShift or are responsible for the platform itself. Every participant works in their own OpenShift environment in the browser, with oc on the command line and with the web console.

The course consists of the following topics and can be adapted to the audience. Over three days, day one covers the fundamentals up to the first workloads on OpenShift, day two covers running applications and day three covers installation, security, Operators and builds. For two-day runs and in-house courses we select the chapters together.

Container and Kubernetes fundamentals

  • Containers, images and registries: Dockerfile, multi-stage build and image references
  • Podman: containers without a daemon and without root privileges, pods and the differences to Docker
  • The Kubernetes principle: desired state, control loop, Pod, Deployment, ReplicaSet and Service
  • Contexts and namespaces in the kubeconfig
  • Hands-On: build the todo application with Podman and push it to a registry, then deploy it with Kubernetes resources

OpenShift overview

  • Architecture of OpenShift 4 and the differences to upstream Kubernetes
  • Web console: Topology view, application groups and Software Catalog
  • The oc CLI for daily work
  • Source-to-Image (S2I): from Git repository to running pod
  • Hands-On: deploy a .NET sample application with Source-to-Image and inspect its resources in console and CLI

Workloads, builds and ImageStreams

  • Deployments, ReplicaSets and rolling updates
  • Placing DeploymentConfig: deprecated, still common in existing projects, migration to Deployment
  • BuildConfig and Build, ImageStream and ImageStreamTag
  • Automatic deployment with image change triggers
  • Templates and oc process compared with Helm
  • Hands-On: build the todo application with a BuildConfig, store it in an ImageStream and roll it out automatically on every new image

Services, Routes and Ingress

  • Service types ClusterIP, NodePort, ExternalName and LoadBalancer, endpoints and service discovery
  • Routes and Kubernetes Ingress compared, TLS termination with edge and passthrough
  • Ingress controllers and IngressClasses in OpenShift
  • Gateway API as the newer standard alongside Routes and Ingress
  • Hands-On: make an application reachable through a Service and a Route and publish the same application through an Ingress

Projects, configuration and storage

  • Projects and namespaces, working with several contexts
  • PersistentVolumes, PersistentVolumeClaims, StorageClasses, access modes and CSI drivers
  • ConfigMaps and Secrets as environment variables and as files
  • Pulling images from a private registry with an imagePullSecret
  • Hands-On: run the todo application with persistent storage and move its configuration into ConfigMaps and Secrets

Running and scaling applications

  • Liveness, readiness and startup probes, initContainers
  • Requests and limits, LimitRanges, quotas, PriorityClasses and preemption
  • Horizontal Pod Autoscaler and Vertical Pod Autoscaler
  • StatefulSets for stateful applications
  • Jobs and CronJobs
  • Hands-On: put an application under load and scale it with the Horizontal Pod Autoscaler, back up MariaDB with a CronJob

Troubleshooting

  • Tools: oc describe, oc logs, oc get events, oc adm top and the views of the web console
  • Typical failure patterns: Pending, ImagePullBackOff, CrashLoopBackOff, failing probes
  • Scheduling problems when resources are scarce
  • Hands-On: find and fix seven prepared failures in storage, configuration, image, runtime, probes and service

Cluster installation and capabilities

  • Single Node OpenShift: architecture and bootstrap flow
  • install-config.yaml, Ignition, Red Hat Enterprise Linux CoreOS and coreos-installer
  • Custom TLS certificates and a storage provisioner for the cluster
  • Cluster capabilities: baselineCapabilitySet and capabilities enabled after installation
  • Hands-On: install a Single Node OpenShift on a virtual machine and configure custom certificates

Security: RBAC, SCCs and Network Policies

  • Roles, ClusterRoles, RoleBindings and ServiceAccounts, users and identity providers
  • Security Context Constraints: restricted, anyuid and custom SCCs
  • Network Policies for ingress and egress
  • CNI in OpenShift: OVN-Kubernetes and the migration from OpenShift SDN
  • Hands-On: assign the matching SCC to a ServiceAccount and separate two namespaces with Network Policies

Operators, Helm and final exercise

  • Custom Resource Definitions, Operators and the reconciliation loop
  • Installing Operators from OperatorHub, using the MariaDB Operator as the example
  • Helm: installing charts, creating your own chart with dependencies
  • Best practices for reliability and security of applications on OpenShift
  • Hands-On: build the todo application from A to Z, with build from source, MariaDB, Service, Route and automatic deployment

At the end of the course you have built an application with a database on OpenShift from source code to Route, installed a cluster and fixed typical failures yourself. The exercises and solutions remain available to you as a reference for your own environment.

For containers and Kubernetes independent of a distribution see Kubernetes & Docker DevOps, for GitOps on OpenShift the course GitOps with ArgoCD.

The actual course content may differ from the above depending on the trainer, delivery, duration and the composition of participants.

Request this course in-house

By submitting you accept our Privacy Policy.

Request a public date

No suitable public date? Register without obligation — once there is enough interest we schedule a new public date and let you know first.

Number of participants (approx.)

More than 3 participants? Best to request a dedicated in-house date directly.

By submitting you accept our Privacy Policy.

More about OpenShift

Red Hat OpenShift is an enterprise container platform built on Kubernetes. OpenShift adds Routes, Projects, Security Context Constraints, integrated builds with ImageStreams, a web console and Operator-based lifecycle management of the cluster. The node operating system is Red Hat Enterprise Linux CoreOS, the default network plugin is OVN-Kubernetes.

Further resources:

Related courses

History

OpenShift was introduced in 2011 by Red Hat as a Platform-as-a-Service (PaaS). Early versions were based on a proprietary container technology before OpenShift 3 in 2015 fully transitioned to Kubernetes and Docker. This realignment made OpenShift one of the first enterprise Kubernetes platforms on the market.

With OpenShift 4, released in 2019, the platform was fundamentally redesigned: the foundation shifted to Red Hat Enterprise Linux CoreOS with CRI-O as the container runtime, and Operator-based lifecycle management became the central management concept. Today OpenShift is one of the most widely used Kubernetes distributions in enterprises and is offered both on-premises and as a managed service in the cloud, for example as Red Hat OpenShift Service on AWS and Azure Red Hat OpenShift.