concept Kubernetes cluster in category docker

appears as: Kubernetes cluster, The Kubernetes cluster
Bootstrapping Microservices with Docker, Kubernetes and Terraform

This is an excerpt from Manning's book Bootstrapping Microservices with Docker, Kubernetes and Terraform.

You might even consider using the techniques in this book to bootstrap your monolith as a single service within a Kubernetes cluster. Now you have the best of both worlds! When the time comes to decompose to microservices, you are already in the best possible position to do so and at your leisure, you can start chipping microservices off the monolith. And with the ease of automated deployment that modern tooling offers it is easy to tear down and recreate your application or create replica environments for development and testing. So if you want or need to create a monolith first you can still benefit from the techniques and technologies presented in this book.

In this chapter and the next, we will create a Kubernetes cluster and deploy multiple containers to it. We’ll deploy a MongoDB database server and a RabbitMQ server. Then we’ll learn how to deploy our video streaming microservice. In the next chapter, we’ll also build a continuous delivery pipeline that will automatically push our code updates to production.

Figure 6.3. The structure of a Kubernetes cluster
Listing 6.7 - Container registry configuration with variables (extract from chapter-6/example-3/scripts/container-registry.tf)
resource "azurerm_container_registry" "container_registry" {
  name = var.app_name #A
  resource_group_name = azurerm_resource_group.flixtube.name
  location = var.location #B
  admin_enabled = true
  sku = "Basic"
}
 
... code omitted here ...