Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions common/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ variable "vault_seal_method" {
default = "shamir"
}

variable "install_velero" {
type = bool
description = "Install Velero"
default = true
}

variable "velero_version" {
type = string
description = "The version of Velero to install"
Expand Down
3 changes: 0 additions & 3 deletions common/velero-credentials

This file was deleted.

2 changes: 2 additions & 0 deletions common/velero.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
resource "helm_release" "velero" {
count = (var.install_velero) ? 1 : 0

name = "velero"
namespace = "velero"
create_namespace = true
Expand Down
6 changes: 3 additions & 3 deletions docs/velero.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Velero is a backup and restore tool for Kubernetes. It is used to backup the cluster's resources, and to restore them in case of disaster. It is also used to migrate the cluster to another provider.

Before using Velero, all you need is an external S3 bucket to store your backups. You can use any S3 compatible storage provider.
Before using Velero, all you need is an external S3 bucket to store your backups. You can use any S3 compatible storage provider.
When creating the cluster, all velero variables are to be set either manualy in the `terraform.tfvars` file or during the automatic setup, according to the type of installation you choose.

## Configuration
Expand All @@ -25,6 +25,6 @@ To schedule a backup of your namespace, just refer to the template `common/Sched

**Restore from backup**

To restore from a backup, run the following command, with *BACKUP_NAME* being the name of the backup you want to restore from : `velero restore create --from-backup BACKUP_NAME`.
To restore from a backup, run the following command, with _BACKUP_NAME_ being the name of the backup you want to restore from : `velero restore create --from-backup BACKUP_NAME`.

Next step → [Standalone use](./standalone.md)
Next step → [Standalone use](./standalone.md)
1 change: 1 addition & 0 deletions scaleway/terraform.tfvars.template
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ grafana_admin_password = ""
vault_server_hostname = ""
install_hashicorp_vault =
vault_ui =
install_velero =
velero_version = ""
velero_s3_bucket_name = ""
velero_s3_bucket_region = ""
Expand Down
1 change: 0 additions & 1 deletion scaleway/velero-credentials

This file was deleted.