Files
awoooi/k8s/awoooi-prod/kustomization.yaml
OG T 7c4b36c2cd
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 2m29s
fix(flywheel): Phase 1 — 部署 8be87b0 + debounce 30min + alertname NULL 修復
ADR-073 Phase 1 三項修復:

1. k8s/kustomization.yaml: newTag a86ecf38be87b0
   - 解封 _collect_mcp_context + auto_approve + DESTRUCTIVE_PATTERNS
   - 這是飛輪解封的關鍵

2. webhooks.py: DEBOUNCE_WINDOW_MINUTES 5 → 30
   - 防止同一問題每 5 分鐘重建 Incident,改為 30 分鐘收斂窗口

3. incident_repository.py: signals JSONB 補充 alertname key
   - signal.model_dump() 只有 alert_name,DB query 用 signals->0->>'alertname'
   - 補充 alertname alias,修復 132 筆 incidents.alertname = NULL 根因

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 13:41:22 +08:00

45 lines
1.4 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.
# AWOOOI 正式環境 Kustomization
# 負責人: CIO
# 版本: v1.0
# 日期: 2026-03-20
#
# ⚠️ 鐵律: 禁止在此檔案寫 newTagTag 由 CI 動態注入
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: awoooi-prod
# 通用標籤
# 注意: commonLabels 會加到 Deployment selector不能移除否則會 immutable error
# NetworkPolicy 的 egress[].to[].podSelector 不受 commonLabels 影響
commonLabels:
environment: prod
system: awoooi
# 02-network-policy.yaml 不納入 - commonLabels 會破壞 DNS egress rule
# 由 CD 單獨 apply: kubectl apply -f k8s/awoooi-prod/02-network-policy.yaml
# 03-secrets.yaml 不納入,由 CI/CD 單獨處理
resources:
- 01-namespace-quota.yaml
- 04-configmap.yaml
- 05-deployment-web.yaml
- 06-deployment-api.yaml
- 07-rbac.yaml
- 08-deployment-worker.yaml
- 09-pdb.yaml
- 13-cronjob-k3s-report.yaml
- 14-cronjob-weekly-report.yaml
# 映像配置 (Tag 由 CI 動態注入)
# Harbor 金庫: 110 主機 (192.168.0.110:5000)
# ⚠️ 重要: name 必須與 deployment YAML 中的 image 完全匹配 (含 tag)
# newName + newTag 由 CI 透過 kustomize edit set image 注入
images:
- name: 192.168.0.110:5000/library/api:IMAGE_TAG_PLACEHOLDER
newName: 192.168.0.110:5000/awoooi/api
newTag: 8be87b0f32a7430d86e93b9be63677c0e498bb79
- name: 192.168.0.110:5000/library/web:IMAGE_TAG_PLACEHOLDER
newName: 192.168.0.110:5000/awoooi/web
newTag: 8be87b0f32a7430d86e93b9be63677c0e498bb79