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.

50 lines
1.4 KiB

  1. ---
  2. - name: Write kube-apiserver manifest
  3. template:
  4. src: manifests/kube-apiserver.manifest.j2
  5. dest: "{{ kube_manifest_dir }}/kube-apiserver.manifest"
  6. notify: Master | Restart apiserver
  7. tags:
  8. - kube-apiserver
  9. - meta: flush_handlers
  10. - name: Write kube-scheduler policy file
  11. template:
  12. src: kube-scheduler-policy.yaml.j2
  13. dest: "{{ kube_config_dir }}/kube-scheduler-policy.yaml"
  14. notify: Master | Restart kube-scheduler
  15. tags:
  16. - kube-scheduler
  17. - name: Write kube-scheduler kubeconfig
  18. template:
  19. src: kube-scheduler-kubeconfig.yaml.j2
  20. dest: "{{ kube_config_dir }}/kube-scheduler-kubeconfig.yaml"
  21. tags:
  22. - kube-scheduler
  23. - name: Write kube-scheduler manifest
  24. template:
  25. src: manifests/kube-scheduler.manifest.j2
  26. dest: "{{ kube_manifest_dir }}/kube-scheduler.manifest"
  27. notify: Master | Restart kube-scheduler
  28. tags:
  29. - kube-scheduler
  30. - name: Write kube-controller-manager kubeconfig
  31. template:
  32. src: kube-controller-manager-kubeconfig.yaml.j2
  33. dest: "{{ kube_config_dir }}/kube-controller-manager-kubeconfig.yaml"
  34. tags:
  35. - kube-controller-manager
  36. - name: Write kube-controller-manager manifest
  37. template:
  38. src: manifests/kube-controller-manager.manifest.j2
  39. dest: "{{ kube_manifest_dir }}/kube-controller-manager.manifest"
  40. notify: Master | Restart kube-controller-manager
  41. tags:
  42. - kube-controller-manager
  43. - meta: flush_handlers