hamburger icon close icon
Kubernetes in Azure

Kubernetes in Azure: How It Works and 7 Service Options

Read Next:

How Can You Run Kubernetes in Azure?

Kubernetes is a fast-growing platform for managing containerized applications, storage and networking components. It allows developers and administrators to focus on application workloads, not infrastructure components. Kubernetes provides a convenient, declarative way to deploy large numbers of containers, with a powerful set of APIs for management tasks.

Kubernetes can be complex to install and maintain, especially when running in production and at enterprise scale. To reduce the complexity of key management and deployment operations, such as scalability and Kubernetes updates, you can use several managed Azure services, including Azure Kubernetes Service (AKS) and Azure Container Instances (ACI).

In AKS, for example, Azure manages the AKS control plane, and customers pay only for the AKS nodes the application runs on.

This is part of an extensive series of guides about microservices.

In this article, you will learn:

What Are the Benefits of Running Kubernetes in Azure? 

Running Kubernetes in Azure provides several benefits to organizations that are looking to deploy and manage containerized applications. Some of the key benefits of running Kubernetes in Azure include:

  • Seamless integration: Azure provides seamless integration with Kubernetes, allowing organizations to easily deploy and manage containerized applications on Azure infrastructure.
  • Scalability: Azure provides scalable infrastructure that can accommodate the growing needs of modern applications. Kubernetes in Azure can easily scale up or down to meet the demands of the application.
  • Availability: Azure provides high availability and disaster recovery features that ensure that Kubernetes clusters are always available and can quickly recover from any disruptions.
  • Security: Azure provides robust security features, including network security, identity and access management, and encryption, which can help organizations secure their Kubernetes clusters and the applications running on them.
  • Automation: Azure provides automation features that can help organizations automate the deployment, scaling, and management of Kubernetes clusters and applications running on them, reducing the time and effort required to manage the infrastructure.
  • Hybrid cloud capabilities: Azure provides hybrid cloud capabilities, enabling organizations to run Kubernetes clusters both on-premises and in the cloud, and easily move applications between the two environments.

Azure Kubernetes: Reference Architecture

To illustrate how Kubernetes is typically implemented on Azure, Microsoft provides a reference architecture, which is a Microsoft application implemented in Azure Kubernetes Service (AKS). This reference architecture can be a starting point for most implementations.


Source: Azure

The reference architecture is composed of:

  • Azure Kubernetes Service (AKS)—at the center of the architecture is AKS.
  • Kubernetes cluster—a cluster running your workloads, deployed on AKS. With AKS you only manage agent nodes; AKS assumes responsibility for the Kubernetes control plane.
  • Virtual network—AKS creates a virtual network in which agent nodes can be deployed. In advanced scenarios, you can create a virtual network first, to give you more control over configuration of subnets, local connections, IP addresses, etc.
  • Ingress—the ingress provides an HTTP/HTTPS path to access cluster services. Behind it, you will typically deploy an API Gateway to manage authentication and authorization.
  • Azure Load Balancer—created when the NGINX ingress controller is implemented. Used to route incoming traffic to the ingress.
  • External data storage—microservices are usually stateless and save data to external data stores, such as relational databases like Azure SQL Database or NoSQL stores like Cosmos DB.
  • Azure Active Directory (AD)—AKS has its own Azure AD identity, used to generate and control Azure resources for Kubernetes deployments. In addition to these mechanisms, Microsoft recommends using Azure AD to establish user authentication in client applications that use the Kubernetes cluster.
  • Azure Container Registry (ACR)—used to store your organization’s Docker images and use them to deploy containers to the cluster. ACR can also leverage authentication by Azure AD. Another option is to store Docker images in a third party registry, like DockerHub.
  • Azure Pipelines—part of the Azure DevOps service, and can help you automate the build/test/deployment cycle. Alternatively, you can use a third-party CI/CD solution like Jenkins.
  • Helm—the Kubernetes package manager. You can use it to combine Kubernetes objects into a package for easier distribution and versioning.
  • Azure Monitor—collects and stores logs from Azure services that interact with your Kubernetes cluster, including AKS controllers, nodes, and containers. You can use this data to monitor applications, configure alerts and dashboards, and analyze the root causes of errors.

Related content: Improving Kubernetes Performance on Azure with Azure NetApp Files

Kubernetes on Azure: 7 Service Options

1. Azure Kubernetes Service

The Azure Kubernetes Service (AKS) facilitates the deployment of managed Kubernetes clusters in Azure. AKS offloads critical tasks from developers and administrators, such as health monitoring and maintenance. 

When running on AKS, you only need to manage agent nodes, and pay only for agent nodes. There is no charge for Kubernetes master nodes—these are configured and deployed automatically. You can configure other features, including Azure AD integration, advanced networking, and monitoring.

You can use the Azure CLI, or the Azure Portal, to create AKS clusters. Another option is to use infrastructure as code (IaC) solutions like Azure Resource Manager templates or TerraForm.

Related Content: How-To Configure Persistent Volumes for Containers in AKS

2. Azure Container Instances

Containers are becoming the preferred means of packaging, deploying and managing cloud applications. Azure Container Instances provide a convenient way to manage containers in Azure, without managing virtual machines. Container instances start in seconds, because they have much less overhead than Azure VMs.

You can import images of Linux or Windows containers from DockerHub, your personal Azure Container Registry, or any other Docker registry. Azure Container Instances has a cache of popular images of base operating systems, helping you deploy custom images faster.

Related Content:

3. Azure Service Fabric

Service Fabric offers a distributed platform that lets you package and deploy microservices applications composed of containers. Service Fabric addresses many of the major challenges of cloud native development.

Azure Service Fabric focuses on building stateful services. You can take advantage of the service framework programming model, or run containerized services with stateful requirements, using the language or code of your choice. You can also create Service Fabric clusters on local Linux machines, Windows Server, or other public cloud platforms.

Service Fabric is used to power many core Microsoft services, including Microsoft Power BI, Azure SQL Database, Cosmos DB, Dynamics 365, and Skype.

4. Azure Container Registry

Azure Container Registry (ACR) is a privately hosted Docker registry service, built on the open source Docker Registry 2.0. Create and manage Azure container registries to store and manage your organization’s private Docker images.

You can also use ACR Tasks to build containers on demand from images, automate your builds according to events like commits to your source code repository, or updates to base images. 

5. Azure Container Instances 

Azure Container Instances (ACI) is a serverless container service provided by Microsoft Azure. It allows you to run containers without needing to manage the underlying infrastructure. ACI is ideal for lightweight, short-lived, and stateless workloads. It offers fast startup times, custom sizes, and per-second billing, making it cost-effective and flexible for a variety of use cases.

6. Azure Container Apps 

Container Apps is a fully managed platform for building, deploying, and scaling containerized applications in Azure. It simplifies container management by providing built-in autoscaling, rolling updates, and integration with Azure services. 

Container Apps supports custom domains and TLS certificates and can run applications across multiple environments. With its event-driven architecture, it enables you to build modern, resilient, and responsive applications that can efficiently scale based on demand.

7. Azure Dev Spaces

The Azure Dev Spaces service provides a fast, iterative Kubernetes development environment for teams using AKS. Azure Dev Spaces allows you to troubleshoot and test all application components in AKS, without needing to set up development machines or setting up dependencies. 

With Azure Dev Spaces you can automatically generate Docker and Kubernetes artifacts for a project, making it easy to add new and existing Kubernetes applications to a development effort.

Kubernetes in Azure with Cloud Volumes ONTAP

NetApp Cloud Volumes ONTAP, the leading enterprise-grade storage management solution, delivers secure, proven storage management services on AWS, Azure and Google Cloud. Cloud Volumes ONTAP capacity can scale into the petabytes, and it supports various use cases such as file services, databases, DevOps or any other enterprise workload, with a strong set of features including high availability, data protection, storage efficiencies, Kubernetes integration, and more.

In particular, Cloud Volumes ONTAP supports Kubernetes Persistent Volume provisioning and management requirements of containerized workloads.

Learn more about how Cloud Volumes ONTAP helps to address the challenges of containerized applications in these Kubernetes Workloads with Cloud Volumes ONTAP Case Studies.

New call-to-action

Kubernetes in Azure with Azure NetApp Files

Azure NetApp Files is a Microsoft Azure file storage service built on NetApp technology, giving you the file capabilities in Azure even your core business applications require.

Get enterprise-grade data management and storage to Azure so you can manage your workloads and applications with ease, and move all of your file-based applications to the cloud.

Azure NetApp Files solves availability and performance challenges for enterprises that want to move mission-critical applications to the cloud, including workloads like HPC, SAP, Linux, Oracle and SQL Server workloads, Windows Virtual Desktop, and more.

In particular, Azure NetApp Files allows you to migrate more applications to Azure–even your business-critical workloads–with extreme file throughput with sub-millisecond response times.

Learn More About Kubernetes in Azure

Read more in our series of guides about Kubernetes in Azure.

Azure Kubernetes Cluster: Deploy Your First Cluster on Azure

Kubernetes clusters contain resources, including one pode or more. These pods serve specific functions or share certain data—they have unique roles. To deploy Kubernetes clusters in the Azure cloud you can use Azure Kubernetes Service (AKS). Learn how to do this in this article, which guides you through the steps and practices of deploying and securing Azure Kubernetes clusters.

Read more: Azure Kubernetes Cluster: Deploy Your First Cluster on Azure

Out-of-This-World Kubernetes Performance on Azure with Azure NetApp Files

Kubernetes can be overly complex when deploying enterprise-grade operations in production. To provide a high level of performance, ,Microsoft partnered with NetApp to introduce a new service: Azure NetApp Files (ANF). This article explains how to easily achieve ultra-low latency and high performance.

Read more: Out-of-This-World Kubernetes Performance on Azure with Azure NetApp Files

Address Persistent Storage Woes in Azure Kubernetes Service

Azure Kubernetes Service (AKS) enables you to deploy, configure, and manage Kubernetes on the Azure platform. You get a wide range of functionalities that simplify migrations of on-premise workloads to Azure, as well as control for easy management. To ensure stability for data access, you can use Azure NetApp Files (ANF) as a storage layer. Learn how to achieve persistence with this first-party service, which is powered by NetApp and managed by Microsoft.

Read more: Address Persistent Storage Woes in Azure Kubernetes Service

Azure Container Instance: The Basics and a Quick Tutorial

Azure Container Instances (ACI) is a service that allows you to run containers directly on the Microsoft Azure public cloud, without requiring the use of virtual machines (VMs). Learn about Azure Container Instance (ACI) features, how it compares to container orchestrators, and learn to create your first container instances.

Read more: Azure Container Instance: The Basics and a Quick Tutorial

Azure Container Instances vs Azure Kubernetes Service (AKS): How to Choose

Azure Container Instances (ACI) offers an easy way to run containers in the Azure cloud, eliminating the need to manage virtual machines (VMs). Azure Kubernetes Service (AKS) lets you deploy managed Kubernetes clusters in Azure. Learn about the differences between ACI and AKS in terms of pricing, scalability, security, and more.

Read more: Azure Container Instances vs Azure Kubernetes Service (AKS): How to Choose

GKE vs AKS: Compared on Availability, Security, Tooling, and More

Google Kubernetes Engine (GKE) and Azure Kubernetes Service (AKS) are both managed Kubernetes services offered by leading cloud providers. Understand the differences between and how to choose the right solution for your organization.

Read more: GKE vs AKS: Compared on Availability, Security, Tooling, and More

Azure Containers: Top 4 Options for Running Containers on Azure

Microsoft Azure offers several services designed specially to help you run containerized applications. Learn about the top Azure container services, including Azure Kubernetes Service (AKS) and Azure Container Instances (ACS).

Read more: Azure Containers: Top 4 Options for Running Containers on Azure

AKS Backup Walkthrough: How to Perform Back Up and Restore Operations in AKS

The data on persistent volumes need to be protected. For users who rely on the native managed Kubernetes service on Azure, AKS, there is a solution for that. AKS works seamlessly with Azure Backup to create and restore backup copies of persistent volumes. This blog shows you how to do it in a step-by-step walkthrough.

Read more in AKS Backup Walkthrough: How to Perform Back Up and Restore Operations in AK

See Additional Guides on Key Microservices Topics

Together with our content partners, we have authored in-depth guides on several other topics that can also be useful as you explore the world of microservices.

Application Mapping

Authored by CodeSee

Kubernetes Persistent Volume

Authored by NetApp

Kubernetes on AWS

Authored by NetApp

Cloud Data Services