Browse Source

Reset between kubeadm secondary control plane join attempts (#5240)

Change-Id: Ic9425bf90552d7e3d42b02409af9773d99376384
pull/5238/head
Matthew Mosesohn 5 years ago
committed by Kubernetes Prow Robot
parent
commit
2864e13ff9
1 changed files with 4 additions and 1 deletions
  1. 5
      roles/kubernetes/master/tasks/kubeadm-secondary-experimental.yml

5
roles/kubernetes/master/tasks/kubeadm-secondary-experimental.yml

@ -49,7 +49,10 @@
msg: "{{ kubeadm_already_run.stat.exists }}"
- name: Joining control plane node to the cluster.
command: >-
shell: >-
if [ -f /etc/kubernetes/manifests/kube-apiserver.yaml ]; then
{{ bin_dir }}/kubeadm reset -f --cert-dir {{ kube_cert_dir }};
fi &&
{{ bin_dir }}/kubeadm join
--config {{ kube_config_dir }}/kubeadm-controlplane.yaml
--ignore-preflight-errors=all

Loading…
Cancel
Save