You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

  1. ---
  2. - name: install | Compare host kubelet with hyperkube container
  3. command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/systembindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /usr/bin/cmp /hyperkube /systembindir/kubelet"
  4. register: kubelet_task_compare_result
  5. until: kubelet_task_compare_result.rc in [0,1,2]
  6. retries: 4
  7. delay: "{{ retry_stagger | random + 3 }}"
  8. changed_when: false
  9. failed_when: "kubelet_task_compare_result.rc not in [0,1,2]"
  10. tags:
  11. - hyperkube
  12. - upgrade
  13. - name: install | Copy kubelet from hyperkube container
  14. command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/systembindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -f /hyperkube /systembindir/kubelet"
  15. when: kubelet_task_compare_result.rc != 0
  16. register: kubelet_task_result
  17. until: kubelet_task_result.rc == 0
  18. retries: 4
  19. delay: "{{ retry_stagger | random + 3 }}"
  20. tags:
  21. - hyperkube
  22. - upgrade
  23. notify: restart kubelet
  24. - name: install | Copy socat wrapper for Container Linux
  25. command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/opt/bin {{ install_socat_image_repo }}:{{ install_socat_image_tag }}"
  26. args:
  27. creates: "{{ bin_dir }}/socat"
  28. when: ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']