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