6 The road to production

 

This chapter covers

  • Deploying a microservice to a Kubernetes cluster
  • Using a local Kubernetes instance for development, experimentation, and learning
  • Creating a managed Kubernetes cluster through the Azure portal UI

Finally, we arrive at the most exciting chapters of the book! The next three chapters cover the three tools we need to deploy our application to production. These three chapters will also be the most difficult so far, but just follow along with the examples to learn the most and gain real experience by bringing your own application to production.

Starting in this chapter, we’ll deploy our first microservice to Kubernetes. You’ll discover how easy it is to use a local Kubernetes instance to experiment and learn.

Then, we’ll take the easiest route to a production Kubernetes cluster by creating a managed cluster in the Azure portal UI. In subsequent chapters, you’ll learn how to create your Kubernetes cluster through code using Terraform and then how to put your deployment process on automatic using GitHub Actions.

6.1 New tools

6.2 Getting the code

6.3 Going to production

6.4 Hosting microservices on Kubernetes

6.4.1 Why Kubernetes?

6.4.2 Pods, nodes, and containers

6.4.3 Pods, deployments, and services

6.5 Enabling your local Kubernetes instance

6.6 Installing the Kubernetes CLI

6.7 Project structure

6.8 Deploying to the local Kubernetes instance

6.8.1 Building the image for the microservice

6.8.2 No container registry needed (yet)

6.8.4 Connecting kubectl to local Kubernetes