Files
platform/traefik/helm-values.yaml
Mayne0213 7ca0f35d92 REFACTOR(traefik): change traefik anti-affinity
- from hard to soft
- Use preferredDuringSchedulingIgnoredDuringExecution instead of
  required
- Allows pods to be scheduled on same node if necessary
- Still prefers distribution across nodes (weight: 100)
2026-01-04 23:28:29 +09:00

57 lines
1.4 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"}]'