Files
platform/traefik/helm-values.yaml
Mayne0213 a705994eac FEAT(prometheus): enable traefik prometheus
- metrics and servicemonitor
- Add metrics.prometheus configuration
- Enable ServiceMonitor for Prometheus scraping
- Add release: prometheus label for discovery
- Enables Grafana dashboard 17346 to display data
2026-01-04 23:28:29 +09:00

72 lines
1.7 KiB
YAML

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
# 3 replicas for HA
deployment:
replicas: 3
# Pod Anti-Affinity - 가능하면 각 노드에 분산 배치 (soft)
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: traefik
topologyKey: kubernetes.io/hostname
# Master 노드에도 배치 허용
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
- key: node-role.kubernetes.io/control-plane
operator: Exists
# Traefik Dashboard 활성화
dashboard:
enabled: true
# API 활성화 (Dashboard에서 필요)
api:
dashboard: true
# Cross-namespace middleware 허용
providers:
kubernetesCRD:
allowCrossNamespace: true
# CLI 추가 인자
additionalArguments:
- "--api.insecure=true"
# ports 설정
ports:
traefik:
expose:
default: true
# svclb tolerations for master node
service:
annotations:
svccontroller.k3s.cattle.io/tolerations: '[{"key":"node-role.kubernetes.io/master","operator":"Exists","effect":"NoExecute"}]'
# Prometheus metrics
metrics:
prometheus:
entryPoint: metrics
addEntryPointsLabels: true
addRoutersLabels: true
addServicesLabels: true
service:
enabled: true
serviceMonitor:
enabled: true
namespace: prometheus
additionalLabels:
release: prometheus