Move velero from apps to infrastructure

This commit is contained in:
2025-08-30 16:54:58 +02:00
parent 4700d0ae4c
commit 17fc9fd63b
10 changed files with 5 additions and 6 deletions

View File

@@ -6,3 +6,4 @@ resources:
- cert-manager
- traefik
- tailscale
- velero

View File

@@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: velero
resources:
- namespace.yaml
- repository.yaml
- release.yaml
configMapGenerator:
- name: velero-prod-values
namespace: velero
files:
- values.yaml
configurations:
- kustomizeconfig.yaml

View File

@@ -0,0 +1,6 @@
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: velero

View File

@@ -0,0 +1,19 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: velero
namespace: velero
spec:
interval: 1h
chart:
spec:
chart: velero
version: 10.1.0
sourceRef:
kind: HelmRepository
name: velero-helm-repo
namespace: velero
valuesFrom:
- kind: ConfigMap
name: velero-prod-values
valuesKey: values.yaml

View File

@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: velero-helm-repo
namespace: velero
spec:
interval: 1h
url: https://vmware-tanzu.github.io/helm-charts

View File

@@ -0,0 +1,42 @@
snapshotsEnabled: false
deployNodeAgent: true
configuration:
backupStorageLocation:
- name: scaleway
provider: velero.io/aws
default: true
bucket: ${VELERO_BUCKET}
config:
region: ${VELERO_REGION}
s3Url: https://s3.${VELERO_REGION}.scw.cloud
defaultVolumesToFsBackup: true
schedules:
daily-backup:
schedule: "0 2 * * *"
template:
includedNamespaces:
- gitea
storageLocation: default
ttl: "168h"
includedResources:
- persistentvolumeclaims
- persistentvolumes
labels:
type: scheduled
period: daily
credentials:
existingSecret: velero-s3-credentials
initContainers:
- name: velero-plugin-for-aws
image: velero/velero-plugin-for-aws:v1.12.2
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /target
name: plugins
nodeAgent:
podVolumePath: /var/lib/k0s/kubelet/pods