From 43f7c1ef393228a72c688a75dcdf6b7bfe1351f7 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Fri, 14 Feb 2025 01:53:43 +0100 Subject: [PATCH] Add velero server --- infra/controllers/velero.yaml | 71 +++++++++++++++++++++++++++++++++++ infra/kustomization.yaml | 1 + 2 files changed, 72 insertions(+) create mode 100644 infra/controllers/velero.yaml diff --git a/infra/controllers/velero.yaml b/infra/controllers/velero.yaml new file mode 100644 index 0000000..7308451 --- /dev/null +++ b/infra/controllers/velero.yaml @@ -0,0 +1,71 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: velero +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: vmware-tanzu + namespace: velero +spec: + interval: 24h + url: https://vmware-tanzu.github.io/helm-charts +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: velero + namespace: velero +spec: + interval: 30m + chart: + spec: + chart: velero + version: 8.3.0 + sourceRef: + kind: HelmRepository + name: vmware-tanzu + namespace: velero + interval: 12h + values: + # Loosely recreating options from tutorial of openebs + # https://openebs.io/docs/Solutioning/backup-and-restore/velerobrfs + initContainers: + - name: velero-plugin-for-aws + image: velero/velero-plugin-for-aws:v1.11.1 + imagePullPolicy: IfNotPresent + volumeMounts: + - mountPath: /target + name: plugins + + deployNodeAgent: true + + configuration: + features: EnableCSI + backupStorageLocation: + - name: backblaze + provider: aws + bucket: lumpiasty-backups + prefix: homelab-backups + default: true + validationFrequency: 1h + credential: + name: backblaze-key + key: key + config: + region: eu-central-003 + s3Url: https://s3.eu-central-003.backblazeb2.com + checksumAlgorithm: "" + volumeSnapshotLocation: + - name: mayastor + provider: csi + + resources: + requests: + cpu: 0 + nodeAgent: + resources: + requests: + cpu: 0 diff --git a/infra/kustomization.yaml b/infra/kustomization.yaml index fa42db8..27fd3ab 100644 --- a/infra/kustomization.yaml +++ b/infra/kustomization.yaml @@ -6,6 +6,7 @@ resources: - controllers/dns-public.yaml - controllers/cert-manager.yaml - controllers/openebs.yaml + - controllers/velero.yaml - diskpools/zoma-dibaiyin-hdd.yaml - configs/bgp-cluster-config.yaml - configs/loadbalancer-ippool.yaml