Files
homelab/k8s-ng/core/coredns-config/deployment.yaml
T
Aleksandr Bogomiakov aaa1e9ae7e
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Failing after 21s
Run CoreDNS on the AI core node and prefer local DNS replicas
2026-10-15 00:41:04 +01:00

34 lines
1019 B
YAML

# 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:
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
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: homelab.hexor.cy/pool
operator: In
values:
- core