OpenShift Local (CRC) on Fedora
Install and use OpenShift Local (CRC) on Fedora with oc, kubectl, Helm, and Operators.
What you'll learn
How to install OpenShift Local (CRC) on Fedora, run a single-node
OpenShift 4 cluster in a local VM, and deploy applications with
kubectl and the OpenShift CLI oc. The chapters
use kubectl for the shared Kubernetes workflow and add an
oc way callout wherever OpenShift gives you a shorter or
more capable path. Later sections cover Routes and edge TLS, Helm on
OpenShift, OpenShift Service Mesh, and installing Operators from
OperatorHub.
Tutorial outline
What this guide covers, who it is for, and how the chapters fit together.
Prerequisites and getting CRC
Prepare the Fedora host, create a free Red Hat Developer account, download OpenShift Local and the pull secret, and plan the cluster size.
Installation
Install the crc binary, put it on your PATH, and wire up the oc and kubectl clients the cluster ships with.
Starting the cluster
Set the cluster size, run crc setup, start OpenShift with your pull secret, and log in with oc and the web console.
oc and kubectl
The two CLIs side by side: what they share, where oc does more, and how projects relate to namespaces.
Deploying applications
Run a first workload with a Deployment and Pods using kubectl, with the oc shortcuts, and meet OpenShift's restricted-v2 security defaults.
Routes and edge TLS
Expose a Service to your host with an OpenShift Route and TLS terminated at the edge, instead of a NodePort.
Helm on OpenShift
Deploy with the Helm CLI, write charts that satisfy restricted-v2, and use OpenShift's native Helm integration and the Helm-based operator pattern.
OpenShift Service Mesh
Install OpenShift Service Mesh 3 and Kiali as Operators, bring up the Istio control plane, enable sidecar injection, enforce STRICT mTLS, and split traffic with a canary.
Operators
How OperatorHub and OLM work, how to pin an operator version safely, and the operators this guide relies on, including Cluster Observability, Node Tuning, and networking.
Persistent storage
Give a workload storage that survives a Pod restart with a PersistentVolumeClaim and OpenShift's dynamic provisioning on CRC.
Autoscaling
Scale a workload on load with the Horizontal Pod Autoscaler and the Custom Metrics Autoscaler (KEDA), including scale-to-zero.
Editor and shell
Work inside the cluster: a shell in a running Pod with oc rsh, a throwaway debug Pod with oc debug, file copies, port-forwards, and the web terminal.
Alternatives
Where OpenShift Local fits next to minikube, kind, the Developer Sandbox, and a real remote OpenShift cluster, and when to reach for each.
FAQ
Common questions and fixes for OpenShift Local: slow starts, resource pressure, networking, the oc client, security defaults, and credentials.
Where to go next
Paths onward from a local OpenShift: certifications, moving to a remote cluster, deeper platform topics, and the sibling guides.
Examples
The runnable examples that accompany the chapters, where they live, and how their verification status is tracked.
Final project: a data mesh on OpenShift
The final project that converges the guide: a seven-service data mesh deployed to OpenShift Local, where restricted-v2, Routes, the integrated registry, Helm, the mesh, storage, and autoscaling all meet in one system.
Appendix: Kubernetes patterns on OpenShift (EX280/DO280)
A pattern-per-chapter reference to cloud-native Kubernetes design patterns, worked on OpenShift with restricted-v2 manifests and the tutorial's shipping services, and reconciled against the DO280/EX280 exam. Organized as its own set.