From ccac3f77280b86a9c2d3a19b3e31a9d14425eaf1 Mon Sep 17 00:00:00 2001 From: "Audun V. Nes" Date: Thu, 19 Oct 2023 10:03:33 +0200 Subject: [PATCH] Add option to use Velero for creating snapshot backups of EBS volumes (#1178) --- compute/k8s-services/main.tf | 1 + compute/k8s-services/vars.tf | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/compute/k8s-services/main.tf b/compute/k8s-services/main.tf index 0f9f14e4f..b53979356 100644 --- a/compute/k8s-services/main.tf +++ b/compute/k8s-services/main.tf @@ -730,6 +730,7 @@ module "velero_flux_manifests" { image_tag = var.velero_image_tag plugin_for_aws_version = var.velero_plugin_for_aws_version plugin_for_csi_version = var.velero_plugin_for_csi_version + snapshots_enabled = var.velero_snapshots_enabled overwrite_on_create = var.fluxcd_bootstrap_overwrite_on_create gitops_apps_repo_url = local.fluxcd_apps_repo_url gitops_apps_repo_branch = var.fluxcd_apps_repo_branch diff --git a/compute/k8s-services/vars.tf b/compute/k8s-services/vars.tf index 2f95785b6..1f60eb197 100644 --- a/compute/k8s-services/vars.tf +++ b/compute/k8s-services/vars.tf @@ -1080,6 +1080,13 @@ variable "velero_plugin_for_csi_version" { } } +variable "velero_snapshots_enabled" { + type = bool + default = false + description = "Should Velero use snapshot backups?" + +} + variable "kyverno_chart_version" { type = string default = "v2.4.1"