Azure Velero
This terraform module provides an easy way to generate Velero required cloud resources (Object Storage and Credentials) to backup Kubernetes objects and trigger volume snapshots.
Provider
This module is compatible with azurerm
terraform provider version:
1.44.0
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
aks_resource_group_name | Resource group name of AKS cluster to backup | string | n/a | yes |
azure_cloud_name | available azure_cloud_name values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud | string | "AzurePublicCloud" | no |
backup_bucket_name | Backup Bucket Name | string | n/a | yes |
velero_resource_group_name | Resouce group in which to create velero resources | string | n/a | yes |
tags | Custom tags to apply to resources | map(string) | {} | no |
Outputs
Name | Description |
---|---|
backup_storage_location | Velero Cloud BackupStorageLocation CRD |
cloud_credentials | Velero required file with credentials |
volume_snapshot_location | Velero Cloud VolumeSnapshotLocation CRD |
Usage
module "velero" {
source = "../vendor/modules/azure-velero"
backup_bucket_name = "sighup-production-cluster-backup"
aks_resource_group_name = "XXX"
velero_resource_group_name = "XXX"
tags = {
"my-key": "my-value"
}
}
Links
- https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure/blob/v1.2.0/backupstoragelocation.md
- https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure/blob/v1.2.0/volumesnapshotlocation.md
- https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure/tree/v1.2.0#create-azure-storage-account-and-blob-container