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.

43 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: url=http://localhost:10251/healthz
  22. register: scheduler_result
  23. until: scheduler_result.status == 200
  24. retries: 15
  25. delay: 5
  26. - name: Master | wait for kube-controller-manager
  27. uri: url=http://localhost:10252/healthz
  28. register: controller_manager_result
  29. until: controller_manager_result.status == 200
  30. retries: 15
  31. delay: 5
  32. - name: Master | wait for the apiserver to be running
  33. uri: url=http://localhost:8080/healthz
  34. register: result
  35. until: result.status == 200
  36. retries: 10
  37. delay: 6