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.

46 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. - name: Master | reload kubelet
  17. service:
  18. name: kubelet
  19. state: restarted
  20. - name: Master | wait for kube-scheduler
  21. uri:
  22. 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:
  29. url: http://localhost:10252/healthz
  30. register: controller_manager_result
  31. until: controller_manager_result.status == 200
  32. retries: 15
  33. delay: 5
  34. - name: Master | wait for the apiserver to be running
  35. uri:
  36. url: http://localhost:8080/healthz
  37. register: result
  38. until: result.status == 200
  39. retries: 10
  40. delay: 6