Browse Source

Cherry pick #4857 #4859 #4867 into release-2.10 (#4877)

* fix start CoreDNS when init secondary master (#4867)

* Update dns-autoscaler.yml.j2 (#4857)

Merge two tolerations.  because the latest tolerations will cover the first tolerations.

* Remove GCE tests and CNCF funding ended (#4859)
pull/4939/head v2.10.4
Andreas Holmsten 5 years ago
committed by Kubernetes Prow Robot
parent
commit
7d8da8348e
3 changed files with 3 additions and 5 deletions
  1. 1
      .gitlab-ci.yml
  2. 5
      roles/kubernetes-apps/ansible/templates/dns-autoscaler.yml.j2
  3. 2
      roles/kubernetes/master/tasks/kubeadm-secondary-legacy.yml

1
.gitlab-ci.yml

@ -64,7 +64,6 @@ ci-authorized:
include:
- .gitlab-ci/lint.yml
- .gitlab-ci/shellcheck.yml
- .gitlab-ci/gce.yml
- .gitlab-ci/digital-ocean.yml
- .gitlab-ci/terraform.yml
- .gitlab-ci/packet.yml

5
roles/kubernetes-apps/ansible/templates/dns-autoscaler.yml.j2

@ -46,6 +46,8 @@ spec:
- effect: NoSchedule
operator: Equal
key: node-role.kubernetes.io/master
- key: "CriticalAddonsOnly"
operator: "Exists"
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@ -77,7 +79,4 @@ spec:
- --v=2
- --configmap=dns-autoscaler{{ coredns_ordinal_suffix }}
- --target=Deployment/coredns{{ coredns_ordinal_suffix }}
tolerations:
- key: "CriticalAddonsOnly"
operator: "Exists"
serviceAccountName: dns-autoscaler

2
roles/kubernetes/master/tasks/kubeadm-secondary-legacy.yml

@ -31,7 +31,7 @@
when: inventory_hostname != groups['kube-master']|first
- name: kubeadm | Init other uninitialized masters
command: timeout -k 600s 600s {{ bin_dir }}/kubeadm init --config={{ kube_config_dir }}/kubeadm-config.yaml --ignore-preflight-errors=all
command: timeout -k 600s 600s {{ bin_dir }}/kubeadm init --config={{ kube_config_dir }}/kubeadm-config.yaml --ignore-preflight-errors=all --skip-phases=addon/coredns
register: kubeadm_init
retries: 10
until: kubeadm_init is succeeded or "field is immutable" in kubeadm_init.stderr

Loading…
Cancel
Save