Files
awoooi/k8s/argocd/awoooi-prod-app.yaml
OG T 6dc03c9a55
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
fix(argocd)+feat(flywheel): Phase 1 完成 — ArgoCD image 斷路修復 + 冷啟動腳本
1. k8s/argocd/awoooi-prod-app.yaml:
   移除 Deployment image ignoreDifferences
   - 原設計造成 CD 更新 kustomization.yaml 後 ArgoCD 不更新 image
   - 修復後 GitOps 閉環恢復正常

2. scripts/cold_start_playbooks.py:
   ADR-073 Phase 1 Step 8 — 生成 15 個基礎 Playbook (K8s/Docker/DB/Infra)
   執行結果: Playbooks 0 → 15

3. scripts/batch_vectorize_km.py:
   ADR-073 Phase 1 Step 9 — 批次向量化 KM
   執行結果: 711/713 embedding IS NOT NULL

Phase 1 全部完成,飛輪已解封:
- Pod 運行 105998d(含 8be87b0 所有修復)
- debounce 30min + alertname NULL 修復 + _collect_mcp_context 啟用
- 15 Playbooks + 711 KM 向量化

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 14:20:52 +08:00

61 lines
1.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: awoooi-prod
namespace: argocd
# ADR-069 Sprint B-2: ArgoCD 管控 awoooi-prod namespace
# 建立時間: 2026-04-11 (台北時間)
# 建立者: Claude Sonnet 4.6
annotations:
argocd.argoproj.io/sync-wave: "0"
spec:
project: default
source:
repoURL: http://192.168.0.110:3001/wooo/awoooi.git
targetRevision: main
path: k8s/awoooi-prod
# kustomize 模式
kustomize:
# image tag 由 CD pipeline 寫入 kustomization.yaml 後觸發 ArgoCD sync
# 不在此設定 images避免覆蓋 CD 注入的 tag
{}
destination:
server: https://kubernetes.default.svc
namespace: awoooi-prod
syncPolicy:
automated:
# prune: 刪除 Git 中已移除的資源
prune: true
# selfHeal: Git 與 K8s 狀態偏離時自動修復(防止手動 kubectl 污染)
selfHeal: true
# 允許在尚未同步時也自動同步
allowEmpty: false
syncOptions:
# 命名空間不存在時自動建立
- CreateNamespace=true
# 使用 server-side apply支援 CRD 大型資源)
- ServerSideApply=true
# 不強制替換 secrets避免誤刪敏感資料
- RespectIgnoreDifferences=true
retry:
limit: 3
backoff:
duration: 10s
factor: 2
maxDuration: 3m
# 忽略差異項目
# ADR-073 修復 (2026-04-12 ogt): 移除 Deployment image ignoreDifferences
# 原設計意圖: 防止 drift 偵測;但副作用是 CD 更新 kustomization.yaml 後 ArgoCD 不更新 image
# 現在 kustomization.yaml newTag 是 image 更新的唯一驅動,必須讓 ArgoCD 讀取並 apply
ignoreDifferences:
# secrets 由 CD 管理,不進入 ArgoCD drift 偵測
- group: ""
kind: Secret
jsonPointers:
- /data