OpenShift in Action
Jamie Duncan, John Osborne
  • MEAP began August 2017
  • Publication in Spring 2018 (estimated)
  • ISBN 9781617294839
  • 400 pages (estimated)
  • printed in black & white

Enterprise infrastructure has a lot of moving parts, and it's your job to keep everything running smoothly. OpenShift, an innovative enterprise infrastructure management system from RedHat, radically simplifies the day-to-day operation of deploying and maintaining large-scale applications. The OpenShift container management platform (CMP) uses Docker, Kubernetes, and other container-oriented technologies to ease cluster management, scaling, and upgrades. By providing an intuitive shell over established technologies, OpenShift gives you the reliability and stability you need with the ease of use you want.

"It's a great book on the subject. Goes well past the RedHat docs."

~ Tony Sweets

"In order to learn Openshift I've used this book not just to learn but for improve previous knowledge acquired."

~ Feria Vila

"A great introduction to OpenShift."

~ Michael Bright

"Great source for anyone interested in learning the new version of the platform."

~ Juan Lopez

Table of Contents detailed table of contents

Part 1: Initial configuration and usage

1. Getting to know OpenShift

1.1. What is a container platform?

1.1.1. Containers in OpenShift

1.1.2. Orchestrating containers

1.1.3. Realizing the promise of containers

1.2. Examining the architecture

1.2.1. Integrating container images

1.2.2. Accessing applications

1.2.3. Handling network traffic in your cluster

1.3. Examining an application

1.3.1. Building applications

1.3.2. Deploying and serving applications

1.4. Use cases for container platforms

1.4.1. Technology use cases

1.4.2. Use cases for businesses

1.4.3. When containers are not the answer

1.5. Solving container storage needs

1.6. Scaling applications

1.7. Integrating stateful and stateless applications

1.8. Summary

2. Getting started

2.1. Logging in

2.1.1. Using the oc command line application

2.2. Creating projects

2.3. Application components

2.3.1. Custom container images

2.3.2. Buildconfigs

2.3.3. Deploymentconfigs

2.3.4. Imagestreams

2.4. Deploying an application

2.4.1. Services provide consistent application access

2.4.2. Exposing services to the outside world with routes

2.5. Deploying applications using the web interface

2.5.1. Logging in to OpenShift web interface

2.6. Deploying applications with the web interface

2.7. Summary

3. Creating and managing persistent storage

3.1. Why containers need persistent storage

3.1.1. Container storage is ephemeral

3.1.2. Handling permanent data requirements

3.2. Creating a persistent volume

3.2.1. Logging in as the admin user

3.2.2. Creating new resources from the command line

3.2.3. Creating a physical volume

3.3. Using persistent storage

3.3.1. How persistent volume claims match up with persistent volumes

3.3.2. Creating a persistent volume claim using the command line

3.3.3. Adding a volume to an application on the command line

3.3.4. Adding persistent storage to an application using the web interface

3.4. Testing applications after adding persistent storage

3.4.1. Data doesn’t get mixed up

3.4.2. Forcing a pod restart

3.4.3. Looking at persistent volume mounts on your node

3.5. Summary

Part 2: Working with applications and users

4. Scaling applications

5. Implementing metrics-based autoscaling

6. Authentication and resource access

7. Databases and other stateful applications

8. Continuous Integration and deployment workflows

Part 3: Advanced concepts and security

9. Application and cluster security

10. Managing software-defined networking

11. Troubleshooting best practices


Appendix A: Installation and initial configuration

A.1. Prerequisites

A.1.1. Available systems or ability to create virtual machines

A.1.2. Administrator or root access

A.1.3. Internet access

A.1.4. Access to the servers

A.1.5. Communication between servers

A.1.6. DNS Resolution

A.1.7. Networking information

A.2. Machine resource requirements

A.3. Installing CentOS 7

A.3.1. Launching the installer.

A.3.2. Configuring the disk setup

A.3.3. Setting up networking

A.3.4. Setting the permanent configurations on the servers

A.3.5. Starting the installation

A.3.6. Wrapping up and reboot

A.4. Preparing to install OpenShift

A.4.1. Software prerequisites

A.4.2. Configuring DNS resolution on both servers

A.4.3. Configuring container storage for the OpenShift nodes

A.4.4. Enabling and starting docker on your OpenShift nodes

A.4.5. Configuring SELinux on your OpenShift nodes

A.4.6. Preparing your master server to run the OpenShift installer

A.5. Installing OpenShift

A.5.1. Launching the installer on the Master node

A.5.2. Configuring Hosts

A.6. Installing the oc OpenShift command line utility

A.6.1. Installing oc on Windows

A.6.2. Installing oc on OS X

A.6.3. Installing oc on Linux

A.6.4. Confirming oc is installed and functioning correctly

Appendix B: Setting up a persistent storage source

B.1. Installing the NFS server software

B.2. Configuring storage for NFS

B.2.1. Creating a filesystem on your storage disk

B.3. Mounting your storage disk at startup

B.3.1. Creating a mountpoint directory

B.3.2. Getting your storage drive’s block ID

B.3.3. Editing /etc/fstab to include your volume

B.3.4. Activating your new mount point

B.4. Configuring NFS

B.4.1. Setting ownership of the mountpoint

B.5. Setting firewall rules to allow NFS traffic

B.6. Enabling and starting NFS

B.6.1. Starting NFS services

B.6.2. Confirming your NFS volume is exported and ready to use

About the book

OpenShift in Action teaches you how to set up and manage container-based infrastructure using OpenShift. You'll explore the core concepts of containers from the ground up: from the kernel all the way through the application. You'll use OpenShift workflows to deploy and scale container applications across multiple nodes. You'll also deploy and troubleshoot a microservices-oriented OpenShift web app and learn to perform rolling application and a base-image upgrades. Along the way, you'll also discover techniques for handling persistent storage and best practices for security and other fundamental tasks.

What's inside

  • Creating and managing persistent storage
  • Scaling applications
  • Authentication and resource access
  • Continuous integration and deployment workflows
  • Application and cluster security
  • Managing software-defined networking
  • Troubleshooting best practices

About the reader

Written for operations engineers and developers with experience in a Linux-based distributed environment.

About the authors

Jamie Duncan is a Cloud Solutions Architect for Red Hat, focusing on large-scale OpenShift deployments. John Osborne is a Lead Linux Container Architect for Red Hat with years of experience developing high-performance technologies using JBoss Middleware.

Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
MEAP combo $44.99 pBook + eBook
MEAP eBook $35.99 pdf + ePub + kindle

FREE domestic shipping on three or more pBooks