2026-10-14 13:57:36 +01:00
|
|
|
# K3s owns the CoreDNS Deployment. Apply only the fields customized here so
|
|
|
|
|
# upstream image, probes, Corefile mounts and topology spread stay intact.
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: coredns
|
|
|
|
|
namespace: kube-system
|
|
|
|
|
annotations:
|
|
|
|
|
argocd.argoproj.io/sync-options: Prune=false,Delete=false
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 3
|
|
|
|
|
template:
|
|
|
|
|
spec:
|
2026-10-15 00:41:04 +01:00
|
|
|
tolerations:
|
|
|
|
|
- key: CriticalAddonsOnly
|
|
|
|
|
operator: Exists
|
|
|
|
|
- key: node-role.kubernetes.io/control-plane
|
|
|
|
|
operator: Exists
|
|
|
|
|
effect: NoSchedule
|
|
|
|
|
# DNS also belongs on the internal core node used by Actions jobs.
|
|
|
|
|
- key: workload
|
|
|
|
|
operator: Equal
|
|
|
|
|
value: ai
|
|
|
|
|
effect: NoSchedule
|
2026-10-14 13:57:36 +01:00
|
|
|
affinity:
|
|
|
|
|
nodeAffinity:
|
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
|
nodeSelectorTerms:
|
|
|
|
|
- matchExpressions:
|
|
|
|
|
- key: homelab.hexor.cy/pool
|
|
|
|
|
operator: In
|
|
|
|
|
values:
|
|
|
|
|
- core
|