Added default volume-snapshot-location

This commit is contained in:
GeorgeRaven
2023-12-18 22:09:44 +00:00
parent 2c58ff1302
commit dc72832a88
8 changed files with 44 additions and 24 deletions

View File

@@ -0,0 +1,21 @@
apiVersion: velero.io/v1
kind: VolumeSnapshotLocation
metadata:
name: aws-default
namespace: velero
spec:
# Name of the volume snapshotter plugin to use to connect to this location.
#
# Required.
provider: velero.io/aws
config:
# The AWS region where the volumes/snapshots are located.
#
# Required.
region: "eu-west-2"
# AWS profile within the credentials file to use for the volume snapshot location.
#
# Optional (defaults to "default").
profile: "default"

View File

@@ -1,21 +0,0 @@
#apiVersion: velero.io/v1
#kind: VolumeSnapshotLocation
#metadata:
# name: ceph-block
# namespace: velero
#spec:
# # Name of the volume snapshotter plugin to use to connect to this location.
# #
# # Required.
# provider: velero.io/aws
#
# config:
# # The AWS region where the volumes/snapshots are located.
# #
# # Required.
# region: "eu-west-2"
#
# # AWS profile within the credentials file to use for the volume snapshot location.
# #
# # Optional (defaults to "default").
# #profile: "default"

View File

@@ -68,9 +68,12 @@ spec:
# a persistent volume provider is configured for Velero.
snapshotVolumes: null
# Where to store the tarball and logs.
# THIS IS THE NAME OF A BackupStorageLocation CRD
storageLocation: aws-default
# The list of locations in which to store volume snapshots created for backups under this schedule.
volumeSnapshotLocations: []
# THIS IS THE NAME OF A VolumeSnapshotLocation CRD
volumeSnapshotLocations:
- aws-default
#- ceph-block
#- gcp-primary
# The amount of time before backups created on this schedule are eligible for garbage collection. If not specified,

View File

@@ -70,7 +70,8 @@ spec:
# Where to store the tarball and logs.
storageLocation: aws-default
# The list of locations in which to store volume snapshots created for backups under this schedule.
volumeSnapshotLocations: []
volumeSnapshotLocations:
- aws-default
#- ceph-block
#- gcp-primary
# The amount of time before backups created on this schedule are eligible for garbage collection. If not specified,

View File

@@ -65,7 +65,7 @@ spec:
storageLocation: aws-default
# The list of locations in which to store volume snapshots created for backups under this schedule.
volumeSnapshotLocations:
- aws-primary
- aws-default
#- gcp-primary
# The amount of time before backups created on this schedule are eligible for garbage collection. If not specified,
# a default value of 30 days will be used. The default can be configured on the velero server

View File

@@ -0,0 +1,8 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: nextcloud-snapshot
namespace: nextcloud
spec:
source:
persistentVolumeClaimName: nextcloud-app-nextcloud

View File

@@ -0,0 +1,8 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: mariadb-snapshot
namespace: nextcloud
spec:
source:
persistentVolumeClaimName: data-nextcloud-app-mariadb-0