feat(k8s): update deployment metadata and adjust GitRepository path in flux-instance.yaml
这个提交包含在:
@@ -8,6 +8,10 @@ spec:
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: "(coredns|local-path-provisioner|metrics-server)"
|
name: "(coredns|local-path-provisioner|metrics-server)"
|
||||||
patch: |
|
patch: |
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: placeholder
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
# 恢复 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
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# 恢复专用 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
|
|
||||||
+1
-3
@@ -22,13 +22,11 @@ spec:
|
|||||||
storage:
|
storage:
|
||||||
class: "local-path"
|
class: "local-path"
|
||||||
size: "10Gi"
|
size: "10Gi"
|
||||||
# Git 仓库同步配置 - 请将 url 替换为实际的 deploy 仓库地址
|
|
||||||
# 恢复模式: 先用 restore profile 部署 Velero,恢复 PVC 后切回 dev-cm
|
|
||||||
sync:
|
sync:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
url: ssh://git@github.com/devcm-repo/k3s.git
|
url: ssh://git@github.com/devcm-repo/k3s.git
|
||||||
ref: refs/heads/main
|
ref: refs/heads/main
|
||||||
path: flux/clusters/restore
|
path: flux/clusters/dev-cm
|
||||||
pullSecret: flux-git-auth
|
pullSecret: flux-git-auth
|
||||||
name: flux
|
name: flux
|
||||||
kustomize:
|
kustomize:
|
||||||
|
|||||||
在新议题中引用
屏蔽一个用户