master.yaml 1.3 KB

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