master.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ---
  2. - name: Perform OpenShift ServiceAccount config
  3. include_tasks: serviceaccount.yaml
  4. run_once: true
  5. - name: Create kuryr manifests tempdir
  6. command: mktemp -d
  7. register: manifests_tmpdir
  8. - name: Create kuryr ConfigMap manifest
  9. become: yes
  10. template:
  11. src: configmap.yaml.j2
  12. dest: "{{ manifests_tmpdir.stdout }}/configmap.yaml"
  13. - name: Create kuryr-controller Deployment manifest
  14. become: yes
  15. template:
  16. src: controller-deployment.yaml.j2
  17. dest: "{{ manifests_tmpdir.stdout }}/controller-deployment.yaml"
  18. - name: Create kuryr-cni DaemonSet manifest
  19. become: yes
  20. template:
  21. src: cni-daemonset.yaml.j2
  22. dest: "{{ manifests_tmpdir.stdout }}/cni-daemonset.yaml"
  23. - name: Apply ConfigMap manifest
  24. oc_obj:
  25. state: present
  26. kind: ConfigMap
  27. name: "kuryr-config"
  28. namespace: "{{ kuryr_namespace }}"
  29. files:
  30. - "{{ manifests_tmpdir.stdout }}/configmap.yaml"
  31. run_once: true
  32. - name: Apply Controller Deployment manifest
  33. oc_obj:
  34. state: present
  35. kind: Deployment
  36. name: "kuryr-controller"
  37. namespace: "{{ kuryr_namespace }}"
  38. files:
  39. - "{{ manifests_tmpdir.stdout }}/controller-deployment.yaml"
  40. run_once: true
  41. - name: Apply kuryr-cni DaemonSet manifest
  42. oc_obj:
  43. state: present
  44. kind: DaemonSet
  45. name: "kuryr-cni-ds"
  46. namespace: "{{ kuryr_namespace }}"
  47. files:
  48. - "{{ manifests_tmpdir.stdout }}/cni-daemonset.yaml"
  49. run_once: true