feat: patch coredns not to be deployed in a non-master node
This commit is contained in:
parent
56a78aa73a
commit
0153c9958c
16 changed files with 45 additions and 382 deletions
5
k8s/services/kube-system/kustomization.yaml
Normal file
5
k8s/services/kube-system/kustomization.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- patch-coredns.yaml
|
||||
16
k8s/services/kube-system/patch-coredns.yaml
Normal file
16
k8s/services/kube-system/patch-coredns.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue