Skip to content
Snippets Groups Projects
Commit e8901a24 authored by Ryler Hockenbury's avatar Ryler Hockenbury Committed by k8s-ci-robot
Browse files

Apply linux node selector to coreDNS deployment (#3688)

* Apply linux node selector to coreDNS deployment

* Remove comment before linux node selector on manifests

* mend
parent c888de8b
No related branches found
No related tags found
No related merge requests found
Showing
with 2 additions and 10 deletions
...@@ -55,6 +55,5 @@ spec: ...@@ -55,6 +55,5 @@ spec:
- --default-params={"linear":{"nodesPerReplica":{{ dnsmasq_nodes_per_replica }},"preventSinglePointFailure":true}} - --default-params={"linear":{"nodesPerReplica":{{ dnsmasq_nodes_per_replica }},"preventSinglePointFailure":true}}
- --logtostderr=true - --logtostderr=true
- --v={{ kube_log_level }} - --v={{ kube_log_level }}
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
...@@ -27,7 +27,6 @@ spec: ...@@ -27,7 +27,6 @@ spec:
tolerations: tolerations:
- effect: NoSchedule - effect: NoSchedule
operator: Exists operator: Exists
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
containers: containers:
......
...@@ -27,6 +27,8 @@ spec: ...@@ -27,6 +27,8 @@ spec:
{% if kube_version is version('v1.11.1', '>=') %} {% if kube_version is version('v1.11.1', '>=') %}
priorityClassName: system-cluster-critical priorityClassName: system-cluster-critical
{% endif %} {% endif %}
nodeSelector:
beta.kubernetes.io/os: linux
serviceAccountName: coredns serviceAccountName: coredns
tolerations: tolerations:
- key: node-role.kubernetes.io/master - key: node-role.kubernetes.io/master
......
...@@ -31,7 +31,6 @@ spec: ...@@ -31,7 +31,6 @@ spec:
{% if kube_version is version('v1.11.1', '>=') %} {% if kube_version is version('v1.11.1', '>=') %}
priorityClassName: system-cluster-critical priorityClassName: system-cluster-critical
{% endif %} {% endif %}
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
tolerations: tolerations:
......
...@@ -30,7 +30,6 @@ spec: ...@@ -30,7 +30,6 @@ spec:
{% if kube_version is version('v1.11.1', '>=') %} {% if kube_version is version('v1.11.1', '>=') %}
priorityClassName: system-cluster-critical priorityClassName: system-cluster-critical
{% endif %} {% endif %}
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
tolerations: tolerations:
......
...@@ -18,7 +18,6 @@ spec: ...@@ -18,7 +18,6 @@ spec:
tolerations: tolerations:
- effect: NoSchedule - effect: NoSchedule
operator: Exists operator: Exists
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
containers: containers:
......
...@@ -13,7 +13,6 @@ spec: ...@@ -13,7 +13,6 @@ spec:
app: netchecker-agent-hostnet app: netchecker-agent-hostnet
spec: spec:
hostNetwork: True hostNetwork: True
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
{% if kube_version is version('v1.6', '>=') %} {% if kube_version is version('v1.6', '>=') %}
......
...@@ -45,6 +45,5 @@ spec: ...@@ -45,6 +45,5 @@ spec:
requests: requests:
cpu: 10m cpu: 10m
memory: 20Mi memory: 20Mi
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
...@@ -12,7 +12,6 @@ spec: ...@@ -12,7 +12,6 @@ spec:
{% if kube_version is version('v1.6', '>=') %} {% if kube_version is version('v1.6', '>=') %}
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
{% endif %} {% endif %}
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
{% if kube_version is version('v1.11.1', '>=') %} {% if kube_version is version('v1.11.1', '>=') %}
......
...@@ -7,7 +7,6 @@ metadata: ...@@ -7,7 +7,6 @@ metadata:
k8s-app: kube-nginx k8s-app: kube-nginx
spec: spec:
hostNetwork: true hostNetwork: true
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
{% if kube_version is version('v1.11.1', '>=') %} {% if kube_version is version('v1.11.1', '>=') %}
......
...@@ -59,7 +59,6 @@ spec: ...@@ -59,7 +59,6 @@ spec:
priorityClassName: system-node-critical priorityClassName: system-node-critical
{% endif %} {% endif %}
serviceAccountName: flannel serviceAccountName: flannel
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
containers: containers:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment