3 Deploying a microservice to Kubernetes

This chapter covers

  • Packaging a microservice in a Docker container
  • Deploying a microservice container to Kubernetes on localhost
  • Creating a basic Kubernetes cluster on Azure’s AKS (Azure Kubernetes Service)
  • Deploying a microservice container to a Kubernetes cluster on AKS

In chapter 2, we developed a simple shopping cart microservice, but we only ran it on localhost directly with the dotnet run command. In this chapter, we take that microservice and deploy it to a production-like environment in a public cloud. Our microservices can run in many different environments, but we are going to pick just one as an example. We are going to focus on how to take the shopping cart microservice and run it in a Kubernetes ...

Get Microservices in .NET, 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.