Files
awoooi/k8s/awoooi-prod/kustomization.yaml
2026-07-15 03:51:04 +08:00

49 lines
1.7 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-ansible-executor-broker.yaml
- 08-deployment-worker.yaml
- 09-pdb.yaml
- 10-deployment-auto-repair-canary.yaml
- 13-cronjob-k3s-report.yaml
- 14-cronjob-weekly-report.yaml
- 15-cronjob-km-vectorize.yaml
- 12-cronjob-drift-scanner.yaml
# 映像配置 (Tag 由 CI 動態注入)
# Harbor 金庫: 110 主機 (192.168.0.110:5000)
# ⚠️ 重要: name 必須與 deployment YAML 中的 image 完全匹配 (含 tag)
# newName + newTag 由 CI 透過 kustomize edit set image 注入
images:
- digest: sha256:b06cf5dbb382513742afe04ac1557f13a1cd4460bdfce42ae778c1ef68bcd445
name: 192.168.0.110:5000/library/api:IMAGE_TAG_PLACEHOLDER
newName: 192.168.0.110:5000/awoooi/api
- digest: sha256:a53519aac2f91444c80ebfde7733b00320bbb95903897526dd6e1f895b5f9e50
name: 192.168.0.110:5000/library/web:IMAGE_TAG_PLACEHOLDER
newName: 192.168.0.110:5000/awoooi/web