You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: This article gives you an understanding about Azure Kubernetes Service (AKS) backup, the cloud-native process to back up and restore the containerized applications and data running in AKS clusters.
4
4
ms.topic: conceptual
5
5
ms.service: backup
6
-
ms.date: 03/14/2023
6
+
ms.date: 03/20/2023
7
7
author: jyothisuri
8
8
ms.author: jsuri
9
9
---
@@ -12,30 +12,38 @@ ms.author: jsuri
12
12
13
13
[Azure Kubernetes Service (AKS)](../aks/intro-kubernetes.md) backup is a simple, cloud-native process to back up and restore the containerized applications and data running in AKS clusters. You can configure scheduled backup for cluster state and application data (persistent volumes - CSI driver-based Azure Disks). The solution provides granular control to choose a specific namespace or an entire cluster to back up or restore by storing backups locally in a blob container and as disk snapshots. With AKS backup, you can unlock end-to-end scenarios - operational recovery, cloning developer/test environments, or cluster upgrade scenarios.
14
14
15
-
AKS backup integrates with Backup center (with other backup management capabilities) to provide a single pane of glass that helps you govern, monitor, operate, and analyze backups at scale.
15
+
AKS backup integrates with Backup center, providing a single pane of glass that can help you govern, monitor, operate, and analyze backups at scale. Your backups are also available in the *AKS portal* under the **Settings** section.
16
16
17
17
## How does AKS backup work?
18
18
19
-
AKS backup enables you to back up your Kubernetes workloads and persistent volumes deployed in AKS clusters. The solution requires a [**Backup Extension**](../azure-arc/kubernetes/conceptual-extensions.md) to be installed in the AKS cluster. Backup vault communicates to the Backup Extension to perform backup and restore related operations. You can configure scheduled backups for your clusters as per your backup policy and can restore the backups to the original or an alternate cluster within the same subscription and region. The extension also allows you to enable granular controls to choose a specific namespace or an entire cluster as a backup/restore configuration while performing the specific operation.
19
+
AKS Backup enables you to back up your Kubernetes workloads and Persistent Volumes deployed in AKS clusters. The solution requires a [**Backup Extension**](/azure/azure-arc/kubernetes/conceptual-extensions) to be installed inside the AKS cluster and Backup Vault communicates to the Extension to perform backup and restore related operations. **Backup Extension** is mandatory to be installed inside AKS cluster to enable backup and restore. As part of installation, a storage account and a blob container is to be provided in input where backups will be stored.
20
+
21
+
Along with Backup Extension, a *User Identity* is created in the AKS cluster's Managed Resource Group (called Extension Identity). This extension identity gets the *Storage Account Contributor* role assigned to it on the storage account where backups are stored in a blob container.
22
+
23
+
To support Public, Private, and Authorized IP based clusters, AKS backup requires *Trusted Access* to be enabled between *Backup vault* and *AKS cluster*. Trusted Access allows Backup vault to access the AKS clusters as specific permissions assigned to it related to the *Backup operations*. For more information on AKS Trusted Access, see [Enable Azure resources to access Azure Kubernetes Service (AKS) clusters using Trusted Access](../aks/trusted-access-feature.md).
20
24
21
25
>[!Note]
22
-
>- You must install Backup Extension in the AKS cluster to enable backups and restores. With the extension installation, a User Identity is created in the AKS cluster's managed resource group (Extension Identity), which gets assigned a set of permissions to access the storage account with the backups stored in the blob container.
23
-
>
24
-
>- An AKS cluster can have only one Backup Extension installed at a time.
25
-
>
26
-
>- Currently, AKS backup allows storing backups in Operational Tier. Operational Tier is a local data store and backups aren't moved to a vault but are stored in your own tenant. However, the Backup vault still serves as the unit for managing backups.
26
+
>AKS backup currently allows storing backups in *Operational Tier*. Operational Tier is a local data store and backups aren't moved to a vault, but are stored in your own tenant. However, the Backup vault still serves as the unit of managing backups.
27
27
28
-
The backup solution enables backups for your Kubernetes workloads deployed in the cluster and the data stored in the persistent volume. Currently, the solution only supports persistent volumes of CSI driver-based Azure Disks. During backups, other *PV* types (such as File Share and Blobs) are skipped by the solution. The Kubernetes workloads are stored in a blob container and the Disk-based persistent volumes are backed up as Disk snapshots.
28
+
Once *Backup Extension* is installed and *Trusted Access* is enabled, you can configure scheduled backups for the clusters as per your backup policy, and can restore the backups to the original or an alternate cluster in the same subscription and region. AKS backup allows you to enable granular controls to choose a specific *namespace* or an *entire cluster* as a backup/restore configuration while performing the specific operation.
29
+
30
+
The *backup solution* enables backup operation for your Kubernetes workloads deployed in the cluster and the data stored in the *Persistent Volume*. The Kubernetes workloads are stored in a blob container and the *Disk-based Persistent Volumes* are backed up as *Disk Snapshots* in a Snapshot Resource Group
31
+
32
+
>[!Note]
33
+
>Currently, the solution only supports Persistent Volumes of CSI Driver-based Azure Disks. During backups, other Persistent Volume types (File Share, Blobs) are skipped by the solution.
29
34
30
35
## Backup
31
36
32
37
To configure backup for AKS cluster, first you need to create a *Backup vault*. The vault gives you a consolidated view of the backups configured across different workloads. AKS backup supports only Operational Tier backup.
33
-
Note: Copying backups to the Vault Tier is currently not supported. So, the Backup vault storage redundancy setting (LRS/GRS) doesn't apply to the backups stored in Operational Tier.
38
+
39
+
>[!Note]
40
+
>- The Backup vault and the AKS cluster to be backed up or restored should be in the same region and subscription.
41
+
>- Copying backups to the *Vault Tier* is currently not supported. So, the *Backup vault storage redundancy* setting (LRS/GRS) doesn't apply to the backups stored in Operational Tier.
34
42
35
43
AKS backup automatically triggers scheduled backup job that copies the cluster resources to a blob container and creates an incremental snapshot of the disk-based persistent volumes as per the backup frequency. Older backups are deleted as per the retention duration specified by the backup policy.
36
44
37
45
>[!Note]
38
-
>AKS backup allows creating multiple backup instances for a single AKS cluster. You can create multiple backup Instances with different backup configurations, as required. However, each backup instance of an AKS cluster should be created with a different backup policy, either in the same or in a different Backup vault.
46
+
>AKS backup allows creating multiple backup instances for a single AKS clusterwith different backup configurations, as required. However, each backup instance of an AKS cluster should be created either in a different Backup vault or with a different backup policy in the same Backup vault.
Copy file name to clipboardExpand all lines: articles/backup/azure-kubernetes-service-cluster-backup-concept.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Azure Kubernetes Service (AKS) backup using Azure Backup prerequisites
3
3
description: This article explains the prerequisites for Azure Kubernetes Service (AKS) backup.
4
4
ms.topic: conceptual
5
5
ms.service: backup
6
-
ms.date: 03/14/2023
6
+
ms.date: 03/20/2023
7
7
author: jyothisuri
8
8
ms.author: jsuri
9
9
---
@@ -24,6 +24,10 @@ Azure Backup now allows you to back up AKS clusters (cluster resources and persi
24
24
25
25
- You need to install Backup Extension on both the source cluster to be backed up and the target cluster where the restore will happen.
26
26
27
+
- Backup Extension can be installed in the cluster from the *AKS portal* blade on the **Backup** tab under **Settings**. You can also use the Azure CLI commands to [manage the installation and other operations on the Backup Extension](azure-kubernetes-service-cluster-manage-backups.md#manage-operations).
28
+
29
+
- Before you install an extension in an AKS cluster, you must register the `Microsoft.KubernetesConfiguration` resource provider at the subscription level. Learn how to [register the resource provider](azure-kubernetes-service-cluster-manage-backups.md#register-the-resource-provider).
30
+
27
31
Learn [how to manage the operation to install Backup Extension using Azure CLI](azure-kubernetes-service-cluster-manage-backups.md#manage-operations).
28
32
29
33
## Trusted Access
@@ -34,6 +38,8 @@ Your Azure resources access AKS clusters through the AKS regional gateway using
34
38
35
39
For AKS backup, the Backup vault accesses your AKS clusters via Trusted Access to configure backups and restores. The Backup vault is assigned a pre-defined role **Microsoft.DataProtection/backupVaults/backup-operator** in the AKS cluster, allowing it to only perform specific backup operations.
36
40
41
+
Before you enable Trusted Access between a Backup vault and an AKS cluster, [enable a *feature flag* on the cluster's subscription](azure-kubernetes-service-cluster-manage-backups.md#enable-the-feature-flag).
42
+
37
43
Learn [how to enable Trusted Access](azure-kubernetes-service-cluster-manage-backups.md#enable-trusted-access).
38
44
39
45
## AKS Cluster
@@ -55,6 +61,11 @@ To enable backup for an AKS cluster, see the following prerequisites: .
55
61
56
62
- The Backup Extension during installation fetches Container Images stored in Microsoft Container Registry (MCR). If you enable a firewall on the AKS cluster, the extension installation process might fail due to access issues on the Registry. Learn [how to allow MCR access from the firewall](../container-registry/container-registry-firewall-access-rules.md#configure-client-firewall-rules-for-mcr).
57
63
64
+
- Install Backup Extension on the AKS clusters following the [required FQDN/application rules](../aks/limit-egress-traffic.md#required-fqdn--application-rules-6).
65
+
66
+
- If you've any previous installation of *Velero* in the AKS cluster, you need to delete it before installing Backup Extension.
67
+
68
+
58
69
## Required roles and permissions
59
70
60
71
To perform AKS backup and restore operations as a user, you need to have specific roles on the AKS cluster, Backup vault, Storage account, and Snapshot resource group.
@@ -75,7 +86,7 @@ Also, as part of the backup and restore operations, the following roles are assi
75
86
| --- | --- | --- | --- |
76
87
| Reader | Backup vault | AKS cluster | Allows the Backup vault to perform *List* and *Read* operations on AKS cluster. |
77
88
| Reader | Backup vault | Snapshot resource group | Allows the Backup vault to perform *List* and *Read* operations on snapshot resource group. |
78
-
|Disk Snapshot Contributor | AKS cluster | Snapshot resource group | Allows AKS cluster to store persistent volume snapshots in the resource group. |
89
+
| Contributor | AKS cluster | Snapshot resource group | Allows AKS cluster to store persistent volume snapshots in the resource group. |
79
90
| Storage Account Contributor | Extension Identity | Storage account | Allows Backup Extension to store cluster resource backups in the blob container. |
Copy file name to clipboardExpand all lines: articles/backup/azure-kubernetes-service-cluster-backup-support-matrix.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Azure Kubernetes Service (AKS) backup support matrix
3
3
description: This article provides a summary of support settings and limitations of Azure Kubernetes Service (AKS) backup.
4
4
ms.topic: conceptual
5
-
ms.date: 03/03/2023
5
+
ms.date: 03/20/2023
6
6
ms.custom: references_regions
7
7
ms.service: backup
8
8
author: jyothisuri
@@ -15,7 +15,7 @@ You can use [Azure Backup](./backup-overview.md) to protect Azure Kubernetes Ser
15
15
16
16
## Supported regions
17
17
18
-
AKS backup is available in all the Azure public cloud regions.
18
+
AKS backup is available in all the Azure public cloud regions, East US, North Europe, West Europe, South East Asia, West US 2, East US 2, West US, North Central US, Central US, France Central, Korea Central, Australia East, UK South, East Asia, West Central US, Japan East, South Central US, West US3, Canada Central, Canada East, Australia South East, Central India, Norway East, Germany West Central, Switzerland North, Sweden Central, Japan West, UK West, Korea South, South Africa North, South India, France South, Brazil South, UAE North.
Copy file name to clipboardExpand all lines: articles/backup/azure-kubernetes-service-cluster-backup.md
+10-31Lines changed: 10 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Back up Azure Kubernetes Service (AKS) using Azure Backup
3
3
description: This article explains how to back up Azure Kubernetes Service (AKS) using Azure Backup.
4
4
ms.topic: how-to
5
5
ms.service: backup
6
-
ms.date: 03/15/2023
6
+
ms.date: 03/20/2023
7
7
author: jyothisuri
8
8
ms.author: jsuri
9
9
---
@@ -89,48 +89,27 @@ To configure backups for AKS cluster, follow these steps:
89
89
90
90
5. Select **Install/Fix Extension** to install the **Backup Extension** on the cluster.
91
91
92
-
6. In the *context* pane, provide the *storage account* and *blob container* where you need to store the backup, and then select **Generate Command**.
92
+
6. In the *context* pane, provide the *storage account* and *blob container* where you need to store the backup, and then select **Click on Install Extension**.
93
93
94
-
>[!Note]
95
-
>Before you install the AKS Backup Extension via *Azure CLI*, you must enable the `Microsoft.KubernetesConfiguration` resource provider on the subscription.
96
-
>
97
-
>To register the resource provider before the extension installation (don't initiate extension installation before registering resource provider), run the following commands:
>2. Monitor the registration process. The registration may take up to *10 minutes*.
102
-
> `az provider show -n Microsoft.KubernetesConfiguration -o table`
103
-
104
-
7. Open the PowerShell console, and then upgrade the CLI to version *2.24.0* or later using the command `az upgrade`.
105
-
106
-
Sign in to the Azure portal (using the command `az login`), and then copy and run the generated commands.
107
-
108
-
The commands install the *Backup Extension* and *Assign Extension* managed identity permissions on the storage account.
109
-
110
-
Once done, select **Revalidate**.
111
-
112
-
>[!Note]
113
-
>We're using the Extension managed identity attached to the underlying compute of the AKS cluster. After running the `az role assignment` command, it may take some time (up to *1 hour*) to propagate permission to the AKS cluster (due to caching issue). If revalidation fails, try again after some time.
114
-
115
-
8. To enable *Trusted Access* and *other role permissions*, select **Grant Permission** > **Next**.
94
+
7. To enable *Trusted Access* and *other role permissions*, select **Grant Permission** > **Next**.
116
95
117
-
9. Select the backup policy that defines the schedule and retention policy for AKS backup, and then select **Next**.
96
+
8. Select the backup policy that defines the schedule and retention policy for AKS backup, and then select **Next**.
118
97
119
-
10. Select **Add/Edit** to define the *backup instance configuration*.
98
+
9. Select **Add/Edit** to define the *backup instance configuration*.
120
99
121
-
11. In the *context* pane, enter the *cluster resources* that you want to back up.
100
+
10. In the *context* pane, enter the *cluster resources* that you want to back up.
122
101
123
102
Learn about the [backup configurations](#backup-configurations).
124
103
125
-
12. Select the *snapshot resource group* where *persistent volume (Azure Disk) snapshots* need to be stored, and then select **Validate**.
104
+
11. Select the *snapshot resource group* where *persistent volume (Azure Disk) snapshots* need to be stored, and then select **Validate**.
126
105
127
106
After validation, if the appropriate roles aren't assigned to the vault over snapshot resource group, the error **Role assignment not done** appears.
128
107
129
-
14. To resolve the error, select the *checkbox* corresponding to the *Datasource*, and then select **Assign Missing Role**.
108
+
12. To resolve the error, select the *checkbox* corresponding to the *Datasource*, and then select **Assign Missing Role**.
130
109
131
-
15. Once the *role assignment* is successful, select **Next**.
110
+
13. Once the *role assignment* is successful, select **Next**.
132
111
133
-
16. Select **Configure Backup**.
112
+
14. Select **Configure Backup**.
134
113
135
114
Once the configuration is complete, the **Backup Instance** gets created.
0 commit comments