terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
AKS support for Backup Extension
Is there an existing issue for this?
- [X] I have searched the existing issues
- https://github.com/Azure/AKS/issues/3356
Community Note
- Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
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
resource "azurerm_kubernetes_cluster" "example" {
...
backup {
name = "foo"
release-train = "stable"
blob {
container_name = "mycontainer"
storage_account_name = "mystorage"
storage_account_resource_group_name = "myreg"
subscription_id = "1234-5678-9999"
}
}
References
No response