feat: patch coredns not to be deployed in a non-master node

This commit is contained in:
cătălin 2026-08-07 11:04:15 +02:00
commit 0153c9958c
No known key found for this signature in database
16 changed files with 45 additions and 382 deletions

View file

@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- patch-coredns.yaml

View file

@ -0,0 +1,16 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: coredns
namespace: kube-system
spec:
template:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists