From 8d7b09a2df47d6725bcafae520c1fbe66727bdb2 Mon Sep 17 00:00:00 2001 From: rohow Date: Thu, 4 Jul 2024 18:12:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(kube):=20=E5=85=A8=E9=9D=A2=E5=90=AF?= =?UTF-8?q?=E7=94=A8nodelocaldns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/kube/coredns/nodelocaldns.yaml | 5 +++-- apps/net/nginx/helmchart.yaml | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/kube/coredns/nodelocaldns.yaml b/apps/kube/coredns/nodelocaldns.yaml index 9abee8c..7f8f5fd 100644 --- a/apps/kube/coredns/nodelocaldns.yaml +++ b/apps/kube/coredns/nodelocaldns.yaml @@ -120,13 +120,14 @@ spec: prometheus.io/port: "9253" prometheus.io/scrape: "true" spec: + # master节点不启用 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - - key: svccontroller.k3s.cattle.io/enablelb - operator: In + - key: node-role.kubernetes.io/master + operator: NotIn values: - "true" priorityClassName: system-node-critical diff --git a/apps/net/nginx/helmchart.yaml b/apps/net/nginx/helmchart.yaml index 77ad760..9c8159e 100644 --- a/apps/net/nginx/helmchart.yaml +++ b/apps/net/nginx/helmchart.yaml @@ -25,11 +25,6 @@ spec: operator: "Exists" effect: "NoSchedule" kind: DaemonSet - dnsPolicy: None - dnsConfig: - nameservers: - - 169.254.20.10 - - 10.43.0.10 hostNetwork: true hostPort: enabled: true