Browse Source

Apply linux node selector to coreDNS deployment (#3688)

* Apply linux node selector to coreDNS deployment

* Remove comment before linux node selector on manifests

* mend
pull/3703/head
Ryler Hockenbury 6 years ago
committed by k8s-ci-robot
parent
commit
e8901a2422
11 changed files with 2 additions and 10 deletions
  1. 1
      roles/dnsmasq/templates/dnsmasq-autoscaler.yml.j2
  2. 1
      roles/dnsmasq/templates/dnsmasq-deploy.yml.j2
  3. 2
      roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2
  4. 1
      roles/kubernetes-apps/ansible/templates/kubedns-autoscaler.yml.j2
  5. 1
      roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml.j2
  6. 1
      roles/kubernetes-apps/ansible/templates/netchecker-agent-ds.yml.j2
  7. 1
      roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.yml.j2
  8. 1
      roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/deploy-default-backend.yml.j2
  9. 1
      roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2
  10. 1
      roles/kubernetes/node/templates/manifests/nginx-proxy.manifest.j2
  11. 1
      roles/network_plugin/flannel/templates/cni-flannel.yml.j2

1
roles/dnsmasq/templates/dnsmasq-autoscaler.yml.j2

@ -55,6 +55,5 @@ spec:
- --default-params={"linear":{"nodesPerReplica":{{ dnsmasq_nodes_per_replica }},"preventSinglePointFailure":true}}
- --logtostderr=true
- --v={{ kube_log_level }}
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux

1
roles/dnsmasq/templates/dnsmasq-deploy.yml.j2

@ -27,7 +27,6 @@ spec:
tolerations:
- effect: NoSchedule
operator: Exists
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux
containers:

2
roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2

@ -27,6 +27,8 @@ spec:
{% if kube_version is version('v1.11.1', '>=') %}
priorityClassName: system-cluster-critical
{% endif %}
nodeSelector:
beta.kubernetes.io/os: linux
serviceAccountName: coredns
tolerations:
- key: node-role.kubernetes.io/master

1
roles/kubernetes-apps/ansible/templates/kubedns-autoscaler.yml.j2

@ -31,7 +31,6 @@ spec:
{% if kube_version is version('v1.11.1', '>=') %}
priorityClassName: system-cluster-critical
{% endif %}
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux
tolerations:

1
roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml.j2

@ -30,7 +30,6 @@ spec:
{% if kube_version is version('v1.11.1', '>=') %}
priorityClassName: system-cluster-critical
{% endif %}
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux
tolerations:

1
roles/kubernetes-apps/ansible/templates/netchecker-agent-ds.yml.j2

@ -18,7 +18,6 @@ spec:
tolerations:
- effect: NoSchedule
operator: Exists
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux
containers:

1
roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.yml.j2

@ -13,7 +13,6 @@ spec:
app: netchecker-agent-hostnet
spec:
hostNetwork: True
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux
{% if kube_version is version('v1.6', '>=') %}

1
roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/deploy-default-backend.yml.j2

@ -45,6 +45,5 @@ spec:
requests:
cpu: 10m
memory: 20Mi
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux

1
roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2

@ -12,7 +12,6 @@ spec:
{% if kube_version is version('v1.6', '>=') %}
dnsPolicy: ClusterFirst
{% endif %}
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux
{% if kube_version is version('v1.11.1', '>=') %}

1
roles/kubernetes/node/templates/manifests/nginx-proxy.manifest.j2

@ -7,7 +7,6 @@ metadata:
k8s-app: kube-nginx
spec:
hostNetwork: true
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux
{% if kube_version is version('v1.11.1', '>=') %}

1
roles/network_plugin/flannel/templates/cni-flannel.yml.j2

@ -59,7 +59,6 @@ spec:
priorityClassName: system-node-critical
{% endif %}
serviceAccountName: flannel
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
nodeSelector:
beta.kubernetes.io/os: linux
containers:

Loading…
Cancel
Save