6: Running an app on Kubernetes

In this chapter, you’ll deploy a containerized application to Kubernetes.

If you’ve been following along, you’ll deploy the app you containerized in the previous chapter. If you skipped that, you can use the publicly available image we’ll show later.

The chapter is divided as follows:

  • Pre-reqs
  • Deploy the app
  • Test the app

Pre-reqs

You need a working Kubernetes cluster with kubectl configured correctly. See Chapter 3.

If you’re using Docker Desktop on Windows, you’ll need to be in Linux containers mode. Just right-click the Docker whale in the system tray and choose Switch to Linux containers. If your system doesn’t have this option, you’re already in Linux containers mode.

Run the following command to ensure ...

Get Quick Start Kubernetes - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.