Files
coredns-deployment/coredns-scheduling-patch.yaml
feedc0de 3264cfb68d
Validate and deploy CoreDNS scheduling / validate (push) Successful in 11s
Validate and deploy CoreDNS scheduling / deploy (push) Successful in 17s
Introduce CI/CD
2026-09-05 15:47:46 +02:00

25 lines
646 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: coredns
namespace: kube-system
spec:
replicas: 2
template:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: odroid-h3
operator: In
values:
- enabled
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
k8s-app: kube-dns
topologyKey: kubernetes.io/hostname