mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-22 16:44:24 +00:00
Move velero from apps to infrastructure
This commit is contained in:
@@ -6,3 +6,4 @@ resources:
|
||||
- cert-manager
|
||||
- traefik
|
||||
- tailscale
|
||||
- velero
|
||||
|
||||
17
infrastructure/controllers/velero/kustomization.yaml
Normal file
17
infrastructure/controllers/velero/kustomization.yaml
Normal 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
|
||||
6
infrastructure/controllers/velero/kustomizeconfig.yaml
Normal file
6
infrastructure/controllers/velero/kustomizeconfig.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
nameReference:
|
||||
- kind: ConfigMap
|
||||
version: v1
|
||||
fieldSpecs:
|
||||
- path: spec/valuesFrom/name
|
||||
kind: HelmRelease
|
||||
4
infrastructure/controllers/velero/namespace.yaml
Normal file
4
infrastructure/controllers/velero/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: velero
|
||||
19
infrastructure/controllers/velero/release.yaml
Normal file
19
infrastructure/controllers/velero/release.yaml
Normal 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
|
||||
8
infrastructure/controllers/velero/repository.yaml
Normal file
8
infrastructure/controllers/velero/repository.yaml
Normal 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
|
||||
42
infrastructure/controllers/velero/values.yaml
Normal file
42
infrastructure/controllers/velero/values.yaml
Normal 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
|
||||
Reference in New Issue
Block a user