
Kubernetes has fast become the platform of choice for many enterprises choosing microservices-based application deployments. Azure Kubernetes Service (AKS) is the managed service to help users onboard, deploy, and manage containerized applications with Kubernetes on Azure.
As containers are stateless, large scale enterprise AKS deployments require persistent volumes to preserve the application state. This data should also be protected from corruption or storage failures to ensure business continuity. In this blog we will explore the options of protecting your AKS cluster through native backup and restore capabilities.
Read on below as we cover:
A persistent volume (PV) exists independent of the lifecycle of a pod and is created and managed by the Kubernetes API. Stateful applications hosted in AKS would require persistent volumes attached to the cluster for the microservices to store and retrieve data.
There are different native options available in Azure to enable this, based on the data types and use cases involved. Azure Files can be used to mount SMB or NFS file shares to pods in AKS to cater to shared data requirements. Azure Blobs can also be a possible solution in this scenario by mounting them using the NFS protocol or BlobFuse. However, the most popular solution for persistent volumes is Azure managed disks.
Persistent volumes can either be statically or dynamically provisioned. For static volumes, an administrator needs to pre-provision all the volumes that will be needed, whereas dynamic volumes as the name indicates provisions volumes on demand, based on a defined StorageClass that maps to a specific Azure Storage type.
While both static and dynamic persistent volumes offer a solution to store data, neither implicitly guarantees data availability in the event of corruption or failure at the storage layer. Customers will have to implement additional data protection measures to ensure that data remains available and can be restored to a working state. As stateful applications in AKS depend on data in persistent volumes, this process becomes crucial to ensure business continuity. That’s where AKS Backup comes into play.
Organizations that use AKS for hosting microservices-based applications should factor in the persistent volume protection in their backup strategy. The native solution for protecting the data stored in AKS persistent volumes is Azure Backup.
Azure Backup is a fully managed cloud-based backup service offered by Azure. It provides a simple and cost-effective solution for protecting your data in the Azure cloud with point-in-time recovery. Azure Backup supports multiple use cases, for Azure, multicloud as well as for on-premises. In Azure the service can be used to protect VMs, File shares, HANA databases, SQL servers and Azure databases for PostgreSQL servers. The backups can be centrally managed and operated from the Azure Backup center.
AKS users can turn to Azure Backup to protect Azure managed disks that are attached as persistent volumes in your clusters. The backup and restore process is initiated from the Azure Backup center.
In the following section we’ll show you how to back up and restore AKS persistent data using Azure Backup.



























As part of your AKS recovery process, this can then be attached to a new or an existing cluster. For more on how to attach a persistent volume to an AKS cluster, check out Azure Kubernetes Service: Configuring Persistent Volumes in AKS.
Applications hosted on AKS can benefit from the trusted NetApp ONTAP storage protection capabilities through BlueXP Cloud Volumes ONTAP. Cloud Volumes ONTAP volumes can be mapped as persistent volumes on AKS clusters through NetApp Trident, the CSI provisioner for Kubernetes, adding unique data protection capabilities for persistent volumes not available natively on Azure.
Persistent volumes are an integral part of stateful applications hosted in AKS. You can leverage native storage options in Azure for provisioning this storage and use Azure Backup to protect them. You can further augment these with the enterprise-class storage capabilities and data protection features of Cloud Volumes ONTAP.
To read more about how organizations are benefiting from Cloud Volumes ONTAP for their Kubernetes deployments, read Kubernetes Workloads with Cloud Volumes ONTAP: Success Stories.