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.

49 lines
1.3 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. tags:
  15. - kube-scheduler
  16. - name: Write kube-scheduler kubeconfig
  17. template:
  18. src: kube-scheduler-kubeconfig.yaml.j2
  19. dest: "{{ kube_config_dir }}/kube-scheduler-kubeconfig.yaml"
  20. tags:
  21. - kube-scheduler
  22. - name: Write kube-scheduler manifest
  23. template:
  24. src: manifests/kube-scheduler.manifest.j2
  25. dest: "{{ kube_manifest_dir }}/kube-scheduler.manifest"
  26. notify: Master | Restart kube-scheduler
  27. tags:
  28. - kube-scheduler
  29. - name: Write kube-controller-manager kubeconfig
  30. template:
  31. src: kube-controller-manager-kubeconfig.yaml.j2
  32. dest: "{{ kube_config_dir }}/kube-controller-manager-kubeconfig.yaml"
  33. tags:
  34. - kube-controller-manager
  35. - name: Write kube-controller-manager manifest
  36. template:
  37. src: manifests/kube-controller-manager.manifest.j2
  38. dest: "{{ kube_manifest_dir }}/kube-controller-manager.manifest"
  39. notify: Master | Restart kube-controller-manager
  40. tags:
  41. - kube-controller-manager
  42. - meta: flush_handlers