Skip to content
Tutorials Center
My learning

Topics

Red Hat OpenShift Tutorial

Learn Red Hat OpenShift step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is Red Hat OpenShift? Learn what OpenShift is, how it extends Kubernetes with builds, routes, security and a web console, and who uses it. Includes runnable stand-ins to explore the ideas.
  2. 2 Editions and Ways to Run OpenShift Compare OpenShift Container Platform, OKD, managed services and free options such as the Developer Sandbox and OpenShift Local, and pick the right way to learn.
  3. 3 The oc CLI and the Web Console Install and use the oc command line tool, log in with a token, read oc get and oc describe output, and find your way around the Developer and Administrator consoles.
  4. 4 Deploy Your First Application Create a project, deploy an app from a container image or Git with oc new-app, expose it with a route, and read the objects that OpenShift created for you.

Architecture and Concepts

  1. 5 OpenShift Cluster Architecture Understand control-plane and worker nodes, etcd, the API server, scheduler, CRI-O, Red Hat CoreOS and the infrastructure services of an OpenShift 4 cluster.
  2. 6 OpenShift vs Kubernetes: What Is Different A practical comparison of OpenShift and Kubernetes: Projects, Routes, ImageStreams, BuildConfigs, SCCs, the oc CLI and install model, with a runnable translator stand-in.
  3. 7 Cluster Operators and Machine Config See how OpenShift manages itself with Cluster Operators, the Cluster Version Operator and the Machine Config Operator, and how to read their status with oc.
  4. 8 API Objects and Inspecting Them with oc Learn how every OpenShift object is described by apiVersion, kind, metadata, spec and status, and use oc api-resources, explain, get, describe and events to inspect them.

Projects and Workloads

  1. 9 Projects and Namespaces Create OpenShift projects, grant roles to teammates, understand project templates, quotas and default network isolation, and plan a project layout for teams.
  2. 10 Deployments and Rollouts Run replicated apps with Deployments, update them with rolling and recreate strategies, roll back with oc rollout undo, and learn why DeploymentConfig is deprecated.
  3. 11 Pods, Containers and Health Probes Understand the Pod lifecycle, multi-container Pods, init containers, and configure liveness, readiness and startup probes so OpenShift restarts and routes correctly.
  4. 12 ConfigMaps and Secrets Keep configuration out of images with ConfigMaps and Secrets: create them with oc, inject as environment variables or files, understand base64, and handle updates safely.
  5. 13 Resource Requests, Limits and Quotas Set CPU and memory requests and limits, understand QoS classes and OOMKilled, and see how LimitRange and ResourceQuota keep a shared OpenShift cluster fair.
  6. 14 YAML Manifests, oc apply and Templates Manage OpenShift objects declaratively with YAML, oc apply, diff and dry-run, organize environments with Kustomize, and meet OpenShift Templates and parameters.

Builds and Pipelines

  1. 15 BuildConfigs and Build Strategies Build container images inside OpenShift with BuildConfig: source, strategy and output, oc start-build, triggers, webhooks and the Docker, Source and binary build types.
  2. 16 Source-to-Image (S2I) Understand how Source-to-Image turns application source into a runnable image with builder images, assemble and run scripts, and how to customize or create your own builder.
  3. 17 ImageStreams and Tags Learn how ImageStreams track image tags by digest, how to import and tag images with oc, use the internal registry, and trigger rollouts when a tag changes.
  4. 18 OpenShift Pipelines (Tekton) Build CI/CD pipelines on OpenShift with Tekton: Tasks, steps, Pipelines, PipelineRuns, workspaces, results, triggers and the tkn CLI, with a runnable pipeline stand-in.
  5. 19 GitOps with OpenShift GitOps (Argo CD) Deploy and sync applications from Git with the OpenShift GitOps Operator and Argo CD: Applications, sync policies, drift detection, app of apps and the CI/CD handoff.

Networking and Routes

  1. 20 Services and Endpoints in OpenShift Learn how OpenShift Services give pods a stable address: selectors, ClusterIP, headless services, EndpointSlices, cluster DNS names and how to debug an empty service.
  2. 21 Routes in OpenShift: Exposing Apps with the Router Learn OpenShift Routes: oc expose, hostnames, path-based routing, weighted blue-green traffic, annotations, the default router and how to troubleshoot a 503.
  3. 22 TLS on OpenShift Routes: Edge, Passthrough and Re-encrypt Compare the three TLS termination modes of OpenShift routes, create secure routes with oc, set insecure edge redirects, use custom certificates and check expiry dates.
  4. 23 Ingress and Ingress Controllers in OpenShift Understand the OpenShift Ingress Operator, the default IngressController, how Kubernetes Ingress becomes a Route, router sharding and when to pick Ingress or Route.

Security and Operators

  1. 24 Security Context Constraints (SCC) in OpenShift Learn why OpenShift runs containers as random non-root users, how restricted-v2, anyuid and privileged SCCs work, and how to fix permission denied errors safely.
  2. 25 RBAC in OpenShift: Roles, Bindings and Groups Control who can do what in OpenShift: roles, cluster roles, role bindings, default roles such as admin, edit and view, groups, oc auth can-i and least privilege.
  3. 26 Service Accounts and Secrets in OpenShift Give pods and pipelines an identity with service accounts, create and mount secrets, pull from private registries, use short-lived tokens and avoid leaking credentials.
  4. 27 Network Policies and Project Isolation in OpenShift Control pod-to-pod traffic with NetworkPolicy in OpenShift: default deny, allow from ingress and monitoring, namespace selectors, egress rules and default project templates.
  5. 28 Operators and the Operator Lifecycle Manager Understand Operators in OpenShift: custom resources and controllers, OperatorHub, OLM subscriptions, channels, install modes, approval strategy and cluster operators.

Storage and Scaling

  1. 29 Persistent Volumes and Claims in OpenShift Keep data beyond a pod's life: persistent volumes, persistent volume claims, access modes, reclaim policies, mounting storage and resizing, with runnable binding models.
  2. 30 Storage Classes and Dynamic Provisioning in OpenShift Let OpenShift create volumes on demand: StorageClass parameters, the default class, CSI drivers, volume binding modes, snapshots, expansion and OpenShift Data Foundation.
  3. 31 Horizontal Pod Autoscaling in OpenShift Scale deployments automatically with the Horizontal Pod Autoscaler: CPU and memory targets, the replica formula, requests, min and max, cooldowns, KEDA and the cluster autoscaler.
  4. 32 Resource Quotas, Limit Ranges and QoS in OpenShift Share a cluster fairly: requests and limits, QoS classes, ResourceQuota per project, LimitRange defaults, ClusterResourceQuota and what happens when a quota is exceeded.

Administration

  1. 33 Cluster Monitoring, Metrics and Alerts in OpenShift Use the built-in OpenShift monitoring stack: Prometheus, Alertmanager, PromQL basics, user workload monitoring, ServiceMonitors, PrometheusRules and alert routing.
  2. 34 Troubleshooting Pods, Events and Logs in OpenShift A systematic guide to fixing broken workloads: pod states such as Pending, CrashLoopBackOff and ImagePullBackOff, oc logs, events, oc debug, must-gather and node problems.
  3. 35 Cluster Updates, MachineSets and Machine Config in OpenShift Update an OpenShift cluster safely: channels, the Cluster Version Operator, update order, Machine Config Operator, MachineConfigPools, MachineSets, pause and rollback limits.

Projects and Practice

  1. 36 Project: Deploy a Secure Three-Tier App on OpenShift Put the chapter together: create a project with quota, deploy database, API and web tiers with secrets, storage, routes, network policies, autoscaling and a final readiness check.
  2. 37 Practice: oc Command Drills and Scenarios for OpenShift Test yourself with OpenShift scenarios on routes, SCCs, RBAC, storage, quotas, troubleshooting and updates, plus a runnable drill that checks your answers against model solutions.