diff --git a/roles/kubernetes/node/tasks/install_host.yml b/roles/kubernetes/node/tasks/install_host.yml index 3ca923848..485610469 100644 --- a/roles/kubernetes/node/tasks/install_host.yml +++ b/roles/kubernetes/node/tasks/install_host.yml @@ -1,11 +1,16 @@ --- - name: install | Copy kubelet binary from download dir - command: rsync -piu "{{ local_release_dir }}/hyperkube" "{{ bin_dir }}/kubelet" - changed_when: false + synchronize: + src: "{{ local_release_dir }}/hyperkube" + dest: "{{ bin_dir }}/kubelet" + compress: no + owner: no + group: no tags: - hyperkube - upgrade + notify: restart kubelet - name: install | Set kubelet binary permissions file: @@ -15,7 +20,6 @@ tags: - hyperkube - upgrade - notify: restart kubelet - name: install | Copy socat wrapper for Container Linux command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/opt/bin {{ install_socat_image_repo }}:{{ install_socat_image_tag }}" diff --git a/upgrade-cluster.yml b/upgrade-cluster.yml index cbb59e93e..dd705439e 100644 --- a/upgrade-cluster.yml +++ b/upgrade-cluster.yml @@ -100,9 +100,8 @@ - { role: kubespray-defaults} - { role: upgrade/pre-upgrade, tags: pre-upgrade } - { role: kubernetes/node, tags: node } - - { role: upgrade/post-upgrade, tags: post-upgrade } - { role: kubernetes/kubeadm, tags: kubeadm, when: "kubeadm_enabled" } - - { role: kubespray-defaults} + - { role: upgrade/post-upgrade, tags: post-upgrade } environment: "{{proxy_env}}" - hosts: kube-master[0]