-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AKS support for Backup Extension #21251
Comments
The backup extension and the necessary role assignments can be created with the resource "azurerm_kubernetes_cluster_extension" "aks_backup" {
name = "backup"
cluster_id = azurerm_kubernetes_cluster.this.id
extension_type = "microsoft.dataprotection.kubernetes"
release_train = "stable"
configuration_settings = {
"credentials.tenantId" = data.azurerm_client_config.this.tenant_id
"configuration.backupStorageLocation.config.subscriptionId" = data.azurerm_client_config.this.subscription_id
"configuration.backupStorageLocation.config.resourceGroup" = azurerm_storage_account.aks_backup.resource_group_name
"configuration.backupStorageLocation.config.storageAccount" = azurerm_storage_account.aks_backup.name
"configuration.backupStorageLocation.bucket" = azurerm_storage_container.aks_backup.name
}
} However, the backup policy and backup configuration are not yet supported. Something like |
@fabian-ro Do you have an example to share? |
Thank you @fabian-ro. Just for information, according to my tests, |
The resource azurerm_data_protection_backup_policy_kubernetes_cluster is now available in the version |
The resource azurerm_data_protection_backup_instance_kubernetes_cluster is now available in the version Please, is it possible to implement the data source of these two resources now? |
Isn't this already closed now ? I see https://registry.terraform.io/providers/hashicorp/azurerm/3.110.0/docs/resources/kubernetes_cluster_extension ? |
Is there an existing issue for this?
Community Note
Description
AKS should support the installation and configuration of the new Backup Extension: https://learn.microsoft.com/en-us/azure/backup/azure-kubernetes-service-cluster-manage-backups#backup-extension-related-operations
Docs to the backup feature: https://learn.microsoft.com/en-us/azure/backup/azure-kubernetes-service-cluster-backup
Extenstion installation command:
It should support the configuration mentioned in the installation command:
az k8s-extension create --name azure-aks-backup --extension-type Microsoft.DataProtection.Kubernetes --scope cluster --cluster-type managedClusters --cluster-name aksclustername --resource-group aksclusterrg --release-train stable --configuration-settings blobContainer=containername storageAccount=storageaccountname storageAccountResourceGroup=storageaccountrg storageAccountSubscriptionId=subscriptionid
The extension is required to be able to automate the whole AKS backup feature in the future.
The managed identity that is created during the installation should be exported as output variable too (at least client id), as we need to grant permissions to it for the feature.
New or Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Potential Terraform Configuration
References
No response
The text was updated successfully, but these errors were encountered: