19 Azure containers

 

Containers, Docker, and Kubernetes have gained a huge following in a few short years. In the same way that server virtualization started to change how IT departments ran their data centers in the mid-2000s, modern container tools and orchestrators are now shaking up how we build and run applications. There’s nothing that inherently connects the growth of containers with cloud computing, but when combined, they provide a great way to develop applications with a cloud-native approach.

Entire books have been written on Docker and Kubernetes, but let’s go on a whirlwind introduction to see how you can quickly run containers in Azure. A powerful suite of Azure services is dedicated to containers, aligning more with the PaaS approach. You can focus on how to build and run your applications rather than how to manage the container infrastructure, orchestration, and cluster components.

In this chapter, we’ll examine what containers are, how Docker got involved, and what Kubernetes can do for you. To see how to run either a single container instance or multiple container instances quickly in a cluster, we’ll explore Azure Container Instances (ACI) and Azure Kubernetes Service (AKS).

19.1 What are containers?

There’s been a huge wave of interest in adoption of containers over the past few years, and I’d be impressed if you haven’t at least heard of one company that has led this charge: Docker. But what is a container, exactly, and what does Docker have to do with it?

19.2 The microservices approach to applications

19.3 Azure Container Instances

19.4 Azure Kubernetes Service

19.4.1 Creating a cluster with Azure Kubernetes Services

19.4.2 Running a basic website in Kubernetes

19.5 Lab: Scaling your Kubernetes deployments