CHORE(goldilocks): disable goldilocks

- and cancel trivy installation
- Comment out goldilocks/argocd.yaml from kustomization
- Comment out trivy/argocd.yaml from kustomization
- Disable autoSync in both applications
- Server overload mitigation
This commit is contained in:
2025-12-31 16:58:10 +09:00
parent d0fc55d403
commit 0ce1f99fb4
5 changed files with 57 additions and 23 deletions

View File

@@ -20,32 +20,53 @@ serviceMonitor:
release: prometheus
namespace: prometheus
# SMTP Secret 환경변수 주입
extraEnv:
- name: SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: alertmanager-smtp
key: smtp_auth_password
config:
global:
resolve_timeout: 5m
smtp_smarthost: "smtp.mail.me.com:587"
smtp_from: "bluemayne0213@icloud.com"
smtp_auth_username: "bluemayne0213@icloud.com"
smtp_auth_password: $(SMTP_PASSWORD)
smtp_require_tls: true
route:
group_by: ["alertname", "cluster", "service"]
group_wait: 10s
group_interval: 10s
repeat_interval: 12h
receiver: "default"
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
receiver: "email"
routes:
# Critical - 즉시 전송
- match:
severity: critical
receiver: "critical"
continue: true
receiver: "email"
group_wait: 10s
repeat_interval: 1h
# Warning
- match:
severity: warning
receiver: "warning"
receiver: "email"
group_wait: 1m
repeat_interval: 4h
# Watchdog 제외 (항상 firing)
- match:
alertname: Watchdog
receiver: "null"
receivers:
- name: "default"
# 기본 수신자 (로그만 남김)
- name: "critical"
# TODO: Slack, Email 등 알림 채널 추가
# webhook_configs:
# - url: 'http://your-webhook-url'
- name: "warning"
# TODO: 경고 알림 채널 추가
- name: "email"
email_configs:
- to: "bluemayne0213@icloud.com"
send_resolved: true
headers:
subject: "[{{ .Status | toUpper }}] {{ .CommonLabels.alertname }}"
- name: "null"
inhibit_rules:
- source_match:
severity: "critical"

View File

@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ingress.yaml
- vault/alertmanager-secrets.yaml

View File

@@ -0,0 +1,18 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: alertmanager-smtp
namespace: alertmanager
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: vault-backend
target:
name: alertmanager-smtp
creationPolicy: Owner
data:
- secretKey: smtp_auth_password
remoteRef:
key: monitoring/alertmanager
property: SMTP_PASSWORD