Ready to build cloud native applications? Get a hands-on introduction to daily life as a developer crafting code on OpenShift, the open source container application platform from Red Hat. Creating and packaging your apps for deployment on modern distributed systems can be daunting. Too often, adding infrastructure value can complicate development. With this practical guide, you'll learn how to build, deploy, and manage a multitiered application on OpenShift.
Authors Joshua Wood and Brian Tannous demonstrate how OpenShift speeds application development. With the Kubernetes container orchestrator at its core, OpenShift simplifies and automates the way you build, ship, and run code. You'll learn how to use OpenShift and the Quarkus Java framework to develop and deploy apps using proven enterprise technologies and practices that you can apply to code in any language.
• Learn the development cycles for building and deploying on OpenShift, and the tools that drive them
• Use OpenShift to build, deploy, and manage the ongoing lifecycle of an n-tier application
• Create a continuous integration and deployment pipeline to turn your source code changes into production rollouts
• Automate scaling decisions with metrics and trigger lifecycle events with webhooks
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# OpenShift for Developers: A Guide for Impatient Beginners
## 【One-Line Pitch】
A hands-on, practical introduction to building, deploying, and managing cloud-native applications on Red Hat's OpenShift platform—perfect for developers who want to move from zero to a working multitiered application without wading through theoretical Kubernetes concepts first.
## 【Book Arc】
- **Opening (~0%–9%)**: Establishes the "why" of OpenShift—the industry push toward scale and reliability through DevOps, SRE, and GitOps—and frames OpenShift as a developer-friendly distribution of Kubernetes that adds the tools and abstractions developers actually need.
- **Early (~16%–28%)**: Introduces core OpenShift concepts: how Projects extend Kubernetes namespaces, how Pods serve as the basic unit of running code, how Deployments manage pod lifecycles, and the two primary interfaces—the `oc` command-line tool and the Web Console.
- **Early (~34%–38%)**: Walks through setting up a local OpenShift environment using CodeReady Containers (CRC), including installation on Windows, resource requirements, and common lifecycle commands for starting, stopping, and cleaning up your cluster.
- **Middle (~44%–47%)**: Demonstrates the fundamental development loop—deploying a simple Hello World application from source code using OpenShift's source-to-image build system, then modifying the source and triggering a rebuild to see the update go live.
- **Middle (~53% onward)**: Introduces OpenShift Pipelines (based on Tekton) for CI/CD, then moves into building the book's main example—a multitiered "Noted" application with backend and frontend components, culminating in automated pipeline runs triggered by webhooks.
## 【Key Takeaways】
- **OpenShift is Kubernetes plus developer ergonomics** (Early): While Kubernetes provides the core orchestration—pods, deployments, the reconcile loop—OpenShift layers on developer-focused features like Projects, Routes, and on-cluster builds that make daily application development practical. Think of it as the difference between a kernel and a full Linux distribution.
- **The reconcile loop is the engine of everything** (Early): Kubernetes continuously works to make the actual state of cluster resources match their desired state. Understanding this fundamental mechanism helps you predict how OpenShift will behave when you change configurations, scale deployments, or push new code.
- **Projects organize applications and teams** (Early): OpenShift Projects extend Kubernetes namespaces to provide both name scoping and administrative policy boundaries. This is the primary way you'll partition your cluster among applications, teams, or application layers.
- **Pods are the unit of scaling, not containers** (Early): A pod groups one or more containers that share a node, IP address, and storage. When you scale a deployment, you create new pods—each with the same configuration but independent runtime state.
- **`oc` is your Swiss Army knife** (Early): The `oc` command-line tool speaks all standard `kubectl` commands plus OpenShift-specific ones for Routes, Projects, builds, and image streams. If you know `kubectl`, you already know most of `oc`.
- **CodeReady Containers gives you a local playground** (Early): CRC runs a full OpenShift cluster in a VM on your workstation, with minimum requirements around 20 GiB RAM and 6 CPU cores for comfortable use. It's the fastest way to get hands-on experience without a cloud subscription.
- **Source-to-image (S2I) builds turn code into running apps** (Middle): OpenShift can fetch source code from a Git repository, compile it using a Builder Image, and deploy the result automatically. This forms the core of the deployment pipeline you'll use throughout the book.
- **The development loop is simple: edit, push, rebuild** (Middle): After your initial deployment, changing application code and pushing to your repository triggers OpenShift to rebuild and redeploy automatically. This basic cycle scales up to full CI/CD pipelines with Tekton.
## 【Reading Tips】
- **Skim the CRC installation details if you're not on Windows** (Early): The book walks through Windows-specific setup, but CRC supports Mac and Linux too. Focus on the resource requirements and lifecycle commands (`crc start`, `crc stop`, `crc status`) which apply everywhere.
- **Deep-read the OpenShift Concepts chapter** (Early): This is where the mental model forms—Projects, Pods, Deployments, Routes, and how they relate. Get this right and everything else falls into place.
- **Follow along with the Hello World example** (Middle): The simple Go application deployment teaches the complete source-to-image workflow in miniature. Don't skip it even if it seems trivial—it establishes the pattern for the more complex Noted application.
- **Pay attention to CLI alternatives** (Throughout): The book shows both Web Console and `oc` command-line approaches. Pick one as your primary, but note the CLI commands—they're often faster and more scriptable for real work.
- **Don't get bogged down in Kubernetes theory** (Early): The book deliberately focuses on OpenShift's developer experience. If you hit a Kubernetes concept that seems abstract, trust that the hands-on examples will make it concrete.
## 【Coverage Limits】
The excerpts cover the book's opening through roughly the midpoint, including OpenShift concepts, local environment setup, and initial application deployment. Later chapters on the full Noted application, advanced pipeline configuration with Tekton Triggers, and webhook automation are only partially represented in this guide.
##
Excerpt 1
15 CRC Requirements 16 Installing CRC on Windows 17 CRC Always Wants More 20 Logging In to OpenShift 21 Log In to the Web Console 21 Log In on the Command Li...
ication and the job of deploying it on a Kubernetes cluster. How will you compile the source code or pair it with its inter‐ preter for packaging in a contai...
b Console lets you see how application parts relate and how they consume cluster resources with topographical representations, graphs, and vis‐ ual connectio...
tion and deploy the result, replacing the previous version. This basic loop prepares you for two key ideas in the more elaborate application you’ll build thr...
omponent. Open the book’s quarkus-backend repo and fork the repository by clicking the Fork button at the top-right corner, as in Chapter 4. Create a New Pro...
ing PostgreSQL Database, as shown in Figure 7-7. Figure 7-7. OperatorHub PostgreSQL Database 2. Now you’ll configure the installation for the PostgreSQL Data...
end deployment by heading to the Toplogy view. Click on the quarkus-backend icon, and then open the Details tab on the slideout. Notice how the deployment ha...
mands inside its container. Listing and Detailing Resources The oc tool is the simplest form of monitoring OpenShift resources. There is a gen‐ eral pattern...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
OpenShift for Developers A Guide for Impatient Beginners (Joshua Wood Brian Tannous)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
OpenShift for Developers A Guide for Impatient Beginners (Joshua Wood Brian Tannous)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment