Loading...
Loading...
Compare original and translation side by side
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined┌─────────────────────────────────────────────────────────────────────┐
│ HUB CLUSTER │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ ArgoCD Server │ │
│ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────────┐│ │
│ │ │ApplicationSet│ │ Projects │ │ Cluster Secrets ││ │
│ │ │ Controller │ │ (RBAC) │ │ (Labels for targeting)││ │
│ │ └─────────────┘ └─────────────┘ └─────────────────────────┘│ │
│ └─────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
│ │ │
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ DEV Cluster │ │ HLG Cluster │ │ PRD Cluster │
│ (Spot OK) │ │ (Staging) │ │ (HA Config) │
└─────────────┘ └─────────────┘ └─────────────┘┌─────────────────────────────────────────────────────────────────────┐
│ 中心集群(HUB CLUSTER) │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ ArgoCD Server │ │
│ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────────┐│ │
│ │ │ApplicationSet│ │ Projects │ │ Cluster Secrets ││ │
│ │ │ Controller │ │ (RBAC) │ │ (用于目标定位的标签)││ │
│ │ └─────────────┘ └─────────────┘ └─────────────────────────┘│ │
│ └─────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
│ │ │
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ 开发集群(DEV Cluster) │ │ 预发布集群(HLG Cluster) │ │ 生产集群(PRD Cluster) │
│ (可使用Spot实例) │ │ (Staging环境) │ │ (高可用配置) │
└─────────────┘ └─────────────┘ └─────────────┘infra-team/ # Infrastructure repository
├── applicationset/ # ApplicationSet definitions
│ ├── kube-addons/ # Add-on ApplicationSets
│ └── applications/ # Business app ApplicationSets
├── argocd-clusters/ # Cluster registration secrets
├── argocd-projects/ # Project definitions (RBAC)
└── applicationset-templates/ # Reusable templates
argo-cd-helm-values/ # Values repository (separate security)
└── kube-addons/
└── <component>/
└── <cluster-name>/
└── values.yaml # Per-cluster overridesinfra-team/ # 基础设施仓库
├── applicationset/ # ApplicationSet定义
│ ├── kube-addons/ # 附加组件ApplicationSets
│ └── applications/ # 业务应用ApplicationSets
├── argocd-clusters/ # 集群注册密钥
├── argocd-projects/ # Project定义(RBAC)
└── applicationset-templates/ # 可复用模板
argo-cd-helm-values/ # 值文件仓库(独立安全管控)
└── kube-addons/
└── <component>/
└── <cluster-name>/
└── values.yaml # 集群专属覆盖配置| Context | Developer Name | Azure AKS Name |
|---|---|---|
| ArgoCD | | |
| Secrets | Uses developer name | - |
| Labels | Uses developer name | - |
| 上下文 | 开发者友好名称 | Azure AKS名称 |
|---|---|---|
| ArgoCD | | |
| 密钥 | 使用开发者友好名称 | - |
| 标签 | 使用开发者友好名称 | - |
labels:
argocd.argoproj.io/secret-type: cluster
environment: dev|hlg|prd|hub
region: brazilsouth|eastus2
cluster-name: <developer-friendly-name>
node-type: spot|standard|mixed
connection-type: internal|external
tier: platform|applicationlabels:
argocd.argoproj.io/secret-type: cluster
environment: dev|hlg|prd|hub
region: brazilsouth|eastus2
cluster-name: <开发者友好名称>
node-type: spot|standard|mixed
connection-type: internal|external
tier: platform|application| Environment | Sync Policy | Replicas | Node Type | Prune |
|---|---|---|---|---|
| dev | Automated | 1 | Spot OK | Yes |
| hlg | Manual | 2 | Mixed | Yes |
| prd | Manual | 3 | Standard | No |
| 环境 | 同步策略 | 副本数 | 节点类型 | 清理(Prune) |
|---|---|---|---|---|
| dev | 自动同步 | 1 | 可使用Spot实例 | 是 |
| hlg | 手动同步 | 2 | 混合类型 | 是 |
| prd | 手动同步 | 3 | 标准类型 | 否 |
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedkubectl applypre-commit run --all-fileskubectl applypre-commit run --all-files