0%

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

Table of Contents

  1. Preface
    1. Who This Book Is For
    2. What You Will Learn
    3. Conventions Used in This Book
    4. Using Code Examples
    5. O’Reilly Online Learning
    6. How to Contact Us
    7. Acknowledgments
  2. 1. A Kubernetes Application Platform
    1. Linux Containers
    2. Kubernetes
    3. What OpenShift Adds
    4. Web Console
    5. Curated Software Catalogs: An OpenShift App Store
    6. CI/CD: Pipelines
    7. Networking and Service Mesh
    8. Integrated Prometheus Metrics, Monitoring, and Alerts
    9. Summary
  3. 2. OpenShift Concepts
    1. Projects Organize Applications and Teams
    2. Projects and Applications
    3. Application Components in OpenShift
    4. Pods
    5. Services
    6. OpenShift Routes
    7. Building Container Images
    8. Deploying Applications
    9. Interacting with OpenShift
    10. oc
    11. OpenShift Web Console
    12. Summary
  4. 3. OpenShift Lab
    1. CodeReady Containers
    2. CRC Requirements
    3. Installing CRC on Windows
    4. CRC Always Wants More
    5. Logging In to OpenShift
    6. Log In to the Web Console
    7. Log In on the Command Line
    8. Summary
  5. 4. Deploying an Application on OpenShift
    1. A Simple Sample Application
    2. Git and GitHub
    3. Building and Deploying the Application on OpenShift
    4. Adding and Deploying a New Feature
    5. Summary
  6. 5. OpenShift Pipelines
    1. Tekton
    2. OpenShift Pipelines Operator
    3. Installing the Pipelines Operator
    4. Pipelines in the Web Console
    5. Using Pipelines
    6. OpenShift Pipelines Resources
    7. Command
    8. Script
    9. Summary
  7. 6. Developing and Deploying from Source Code
    1. Noted: A Cloud-Ready Notes Application
    2. Application Topology
    3. Fork the Backend Repository
    4. Create a New Project for the Noted App
    5. Deploy the Backend Component
    6. Inspect the Backend Resources
    7. Deploy the Frontend Component
    8. A Running Noted Application
    9. Automatic Pipeline Runs Using Tekton Triggers
    10. Pipeline Triggers
    11. The Forward Proxy Workaround
    12. Deploy the ngrok Template
    13. GitHub Webhook Configuration
    14. The Reversed Text Quarkus-Backend Bug Fix
    15. Summary
  8. 7. Evolving the Application: Data Persistence
    1. Database Without Delay
    2. Database Templates
    3. Service Binding Operator
    4. The Postgres Operator Designed for Service Binding
    5. Add the Sample DB Operators OperatorSource
    6. Install the PostgreSQL Database Operator
    7. Verify Operator Installation
    8. Deploy a PostgreSQL Database
    9. Configure the pgsql quarkus-backend Branch
    10. Inspect the quarkus-backend pgsql Branch
    11. Service Binding Operator Usage
    12. Configure a ServiceBinding
    13. Test the ServiceBinding
    14. Inspect the ServiceBinding Injection
    15. Persistence in Action
    16. Summary
  9. 8. Production Deployment and Scaling
    1. Application Scaling
    2. Manual Scaling
    3. The Service Abstraction
    4. Automatic Scaling
    5. Health Checks
    6. Health-Checking Probes
    7. Configure the Health Checks in OpenShift
    8. Production Deployment Strategies
    9. Available Deployment Strategies on OpenShift
    10. Configuring a Deployment Strategy
    11. Deployment Rollbacks
    12. Summary
  10. 9. Monitoring and Managing Applications on OpenShift
    1. Listing and Detailing Resources
    2. Using Labels to Filter Listed Resources
    3. Describing Resources
    4. Events and Logs
    5. Debugging an Application in Its Container
    6. oc rsh
    7. oc exec
    8. oc debug
    9. OpenShift Monitoring
    10. Monitoring in the Web Console Developer Perspective
    11. Deleting Resources, Applications, and Projects
    12. Summary
  11. 10. Templates, Operators, and OpenShift Automation
    1. Templates
    2. Templates in the OpenShift Web Console
    3. Creating Your Own Templates
    4. Operators
    5. Operator Subscriptions and the Operator Lifecycle Manager
    6. Operators from the Developer Perspective
    7. Summary
  12. Index
3.144.252.153