From 9c9d70b962b551f934f75d41c0f5bfaea58f433c Mon Sep 17 00:00:00 2001 From: rohow Date: Mon, 20 Apr 2026 13:37:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=92=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=9B=86=E7=BE=A4=E9=85=8D=E7=BD=AE=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=20Barman=20S3=20=E5=A4=87=E4=BB=BD=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flux/clusters/restore/infra-devops.yaml | 19 +++++++++++++++++++ flux/clusters/restore/kustomization.yaml | 8 ++++++++ 2 files changed, 27 insertions(+) create mode 100644 flux/clusters/restore/infra-devops.yaml create mode 100644 flux/clusters/restore/kustomization.yaml diff --git a/flux/clusters/restore/infra-devops.yaml b/flux/clusters/restore/infra-devops.yaml new file mode 100644 index 0000000..ee3de66 --- /dev/null +++ b/flux/clusters/restore/infra-devops.yaml @@ -0,0 +1,19 @@ +# 恢复 profile 仅部署 infra-devops (Velero),不含 post 层 +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: infra-devops + namespace: infra-gitops +spec: + interval: 30m + timeout: 15m + retryInterval: 1m + sourceRef: + kind: GitRepository + name: flux + path: ./flux/infrastructure/infra-devops + prune: true + wait: true + dependsOn: + - name: sources + - name: secrets diff --git a/flux/clusters/restore/kustomization.yaml b/flux/clusters/restore/kustomization.yaml new file mode 100644 index 0000000..7027429 --- /dev/null +++ b/flux/clusters/restore/kustomization.yaml @@ -0,0 +1,8 @@ +# 恢复专用 profile — 仅部署 Velero 用于 PVC 恢复 +# 使用方法: 将 FluxInstance sync.path 临时切换到 flux/clusters/restore +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base/sources.yaml + - ../base/secrets.yaml + - infra-devops.yaml