mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 21:09:58 +00:00
velero resource policy
Signed-off-by: Michael Thomson <michael@michaelthomson.dev>
This commit is contained in:
@@ -25,28 +25,18 @@ spec:
|
|||||||
name: plugins
|
name: plugins
|
||||||
configuration:
|
configuration:
|
||||||
backupStorageLocation:
|
backupStorageLocation:
|
||||||
# name is the name of the backup storage location where backups should be stored. If a name is not provided,
|
|
||||||
# a backup storage location will be created with the name "default". Optional.
|
|
||||||
- name: backblaze
|
- name: backblaze
|
||||||
default: true
|
default: true
|
||||||
# provider is the name for the backup storage location provider.
|
|
||||||
provider: aws
|
provider: aws
|
||||||
# bucket is the name of the bucket to store backups in. Required.
|
|
||||||
bucket: mthomson-cluster-backup
|
bucket: mthomson-cluster-backup
|
||||||
credential:
|
credential:
|
||||||
# name of the secret used by this backupStorageLocation.
|
|
||||||
name: velero-secret
|
name: velero-secret
|
||||||
# name of key that contains the secret data to be used.
|
|
||||||
key: cloud
|
key: cloud
|
||||||
# Additional provider-specific configuration. See link above
|
|
||||||
# for details of required/optional fields for your provider.
|
|
||||||
config:
|
config:
|
||||||
region: us-west-004
|
region: us-west-004
|
||||||
s3Url: "https://s3.us-west-004.backblazeb2.com"
|
s3Url: "https://s3.us-west-004.backblazeb2.com"
|
||||||
volumeSnapshotLocation:
|
volumeSnapshotLocation:
|
||||||
# name is the name of the volume snapshot location where snapshots are being taken. Required.
|
|
||||||
- name: longhorn
|
- name: longhorn
|
||||||
# provider is the name for the volume snapshot provider.
|
|
||||||
provider: csi
|
provider: csi
|
||||||
defaultVolumeSnapshotLocations: csi:longhorn
|
defaultVolumeSnapshotLocations: csi:longhorn
|
||||||
features: EnableCSI
|
features: EnableCSI
|
||||||
@@ -58,4 +48,6 @@ spec:
|
|||||||
template:
|
template:
|
||||||
ttl: "240h"
|
ttl: "240h"
|
||||||
storageLocation: backblaze # use the same name you defined above in backupStorageLocation
|
storageLocation: backblaze # use the same name you defined above in backupStorageLocation
|
||||||
|
resourcePolicy:
|
||||||
|
kind: configmap
|
||||||
|
name: resource-policies-configmap
|
||||||
|
|||||||
20
velero/resource-policies-configmap.yaml
Normal file
20
velero/resource-policies-configmap.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
resource-policies-configmap.yaml: |
|
||||||
|
version: v1
|
||||||
|
volumePolicies:
|
||||||
|
- conditions:
|
||||||
|
storageClass:
|
||||||
|
- nfs-client
|
||||||
|
action:
|
||||||
|
type: skip
|
||||||
|
- conditions:
|
||||||
|
storageClass:
|
||||||
|
- longhorn
|
||||||
|
action:
|
||||||
|
type: snapshot
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: resource-policies-configmap
|
||||||
|
namespace: velero
|
||||||
Reference in New Issue
Block a user