Browse Source

Add node selector to coredns chart

Change-Id: I5ffb775ed4d78ca0ee0badfca04a6d4383c0085e
Mark Burnett 1 year ago
parent
commit
09cdb0459d

+ 2
- 0
charts/coredns/templates/deployment.yaml View File

@@ -39,6 +39,8 @@ spec:
39 39
       tolerations:
40 40
         - key: "CriticalAddonsOnly"
41 41
           operator: "Exists"
42
+      nodeSelector:
43
+        {{ .Values.labels.coredns.node_selector_key }}: {{ .Values.labels.coredns.node_selector_value }}
42 44
       affinity:
43 45
         podAntiAffinity:
44 46
           preferredDuringSchedulingIgnoredDuringExecution:

+ 4
- 1
charts/coredns/values.yaml View File

@@ -28,7 +28,10 @@ images:
28 28
     test: coredns/coredns:1.0.5
29 29
   pull_policy: "IfNotPresent"
30 30
 
31
-node_selector: {}
31
+labels:
32
+  coredns:
33
+    node_selector_key: coredns
34
+    node_selector_value: enabled
32 35
 
33 36
 service:
34 37
   name: coredns

+ 1
- 0
examples/basic/Genesis.yaml View File

@@ -14,6 +14,7 @@ data:
14 14
   labels:
15 15
     dynamic:
16 16
       - calico-etcd=enabled
17
+      - coredns=enabled
17 18
       - kubernetes-apiserver=enabled
18 19
       - kubernetes-controller-manager=enabled
19 20
       - kubernetes-etcd=enabled

+ 1
- 0
examples/complete/Genesis.yaml View File

@@ -20,6 +20,7 @@ data:
20 20
       - ceph-osd=enabled
21 21
       - ceph-rgw=enabled
22 22
       - ceph-mgr=enabled
23
+      - coredns=enabled
23 24
       - kubernetes-apiserver=enabled
24 25
       - kubernetes-controller-manager=enabled
25 26
       - kubernetes-etcd=enabled

+ 1
- 0
tools/g2/manifests/conformance.json View File

@@ -37,6 +37,7 @@
37 37
         "-n", "n2",
38 38
         "-n", "n3",
39 39
         "-l", "calico-etcd=enabled",
40
+        "-l", "coredns=enabled",
40 41
         "-l", "kubernetes-apiserver=enabled",
41 42
         "-l", "kubernetes-controller-manager=enabled",
42 43
         "-l", "kubernetes-etcd=enabled",

+ 1
- 0
tools/g2/manifests/integration.json View File

@@ -54,6 +54,7 @@
54 54
         "-l", "ceph-mon=enabled",
55 55
         "-l", "ceph-osd=enabled",
56 56
         "-l", "ceph-rgw=enabled",
57
+        "-l", "coredns=enabled",
57 58
         "-l", "ucp-control-plane=enabled",
58 59
         "-e", "kubernetes n0 genesis n1",
59 60
         "-e", "calico n0 n0 n1"

+ 1
- 0
tools/g2/manifests/resiliency.json View File

@@ -42,6 +42,7 @@
42 42
         "-n", "n2",
43 43
         "-n", "n3",
44 44
         "-l", "calico-etcd=enabled",
45
+        "-l", "coredns=enabled",
45 46
         "-l", "kubernetes-apiserver=enabled",
46 47
         "-l", "kubernetes-controller-manager=enabled",
47 48
         "-l", "kubernetes-etcd=enabled",

+ 1
- 0
tools/gate/config-templates/genesis-config.yaml View File

@@ -18,6 +18,7 @@ data:
18 18
       - ceph-osd=enabled
19 19
       - ceph-rgw=enabled
20 20
       - ceph-mgr=enabled
21
+      - coredns=enabled
21 22
       - kubernetes-apiserver=enabled
22 23
       - kubernetes-controller-manager=enabled
23 24
       - kubernetes-etcd=enabled

+ 3
- 0
tools/gate/config-templates/joining-host-config.yaml View File

@@ -19,6 +19,7 @@ data:
19 19
       - ceph-osd=enabled
20 20
       - ceph-rgw=enabled
21 21
       - ceph-mgr=enabled
22
+      - coredns=enabled
22 23
       - kubernetes-apiserver=enabled
23 24
       - kubernetes-controller-manager=enabled
24 25
       - kubernetes-etcd=enabled
@@ -48,6 +49,7 @@ data:
48 49
       - ceph-osd=enabled
49 50
       - ceph-rgw=enabled
50 51
       - ceph-mgr=enabled
52
+      - coredns=enabled
51 53
       - kubernetes-apiserver=enabled
52 54
       - kubernetes-controller-manager=enabled
53 55
       - kubernetes-etcd=enabled
@@ -77,6 +79,7 @@ data:
77 79
       - ceph-osd=enabled
78 80
       - ceph-rgw=enabled
79 81
       - ceph-mgr=enabled
82
+      - coredns=enabled
80 83
       - kubernetes-apiserver=enabled
81 84
       - kubernetes-controller-manager=enabled
82 85
       - kubernetes-etcd=enabled

Loading…
Cancel
Save