feat(k8s): update deployment metadata and adjust GitRepository path in flux-instance.yaml

这个提交包含在:
rohow
2026-04-20 16:41:03 +08:00
未验证
父节点 9ba63c32bb
当前提交 98c994fa0c
修改 4 个文件,包含 5 行新增30 行删除
@@ -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:
-19
查看文件
@@ -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
-8
查看文件
@@ -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: