Chapter 4. Deploying Microservices on Kubernetes

In this chapter, we will learn how to deploy microservices on Kubernetes, which is an open source framework from Google for orchestrating and managing containers. We will cover the following recipes:

  • Setting up a Kubernetes cluster using Docker
  • Understanding the Kubernetes dashboard
  • Deploying your microservice on Kubernetes
  • Configuring ports in Kubernetes
  • Configuring volumes in Kubernetes
  • Configuring environment variables in Kubernetes
  • Scaling your microservice in Kubernetes
  • Destroying your microservice in Kubernetes
  • Monitoring your microservice logs in Kubernetes

Introduction

Before we jump into the recipes, it is very important that you know what Kubernetes is and why we use it to deploy microservices.

Get Microservices Deployment Cookbook 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.