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.

35 lines
824 B

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