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.

44 lines
1.1 KiB

9 years ago
  1. ---
  2. - name: Master | restart kubelet
  3. command: /bin/true
  4. notify:
  5. - Master | reload systemd
  6. - Master | reload kubelet
  7. - Master | wait for master static pods
  8. - name: Master | wait for master static pods
  9. command: /bin/true
  10. notify:
  11. - Master | wait for the apiserver to be running
  12. - Master | wait for kube-scheduler
  13. - Master | wait for kube-controller-manager
  14. - name: Master | reload systemd
  15. command: systemctl daemon-reload
  16. when: ansible_service_mgr == "systemd"
  17. - name: Master | reload kubelet
  18. service:
  19. name: kubelet
  20. state: restarted
  21. - name: Master | wait for kube-scheduler
  22. uri: url=http://localhost:10251/healthz
  23. register: scheduler_result
  24. until: scheduler_result.status == 200
  25. retries: 15
  26. delay: 5
  27. - name: Master | wait for kube-controller-manager
  28. uri: url=http://localhost:10252/healthz
  29. register: controller_manager_result
  30. until: controller_manager_result.status == 200
  31. retries: 15
  32. delay: 5
  33. - name: Master | wait for the apiserver to be running
  34. uri: url=http://localhost:8080/healthz
  35. register: result
  36. until: result.status == 200
  37. retries: 10
  38. delay: 6