generate_services.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. ---
  2. - name: Generating logging-es service
  3. template: src=service.j2 dest={{mktemp.stdout}}/templates/logging-es-svc.yaml
  4. vars:
  5. obj_name: logging-es
  6. ports:
  7. - {port: 9200, targetPort: restapi}
  8. labels:
  9. logging-infra: support
  10. selector:
  11. provider: openshift
  12. component: es
  13. check_mode: no
  14. changed_when: no
  15. - name: Generating logging-es-cluster service
  16. template: src=service.j2 dest={{mktemp.stdout}}/templates/logging-es-cluster-svc.yaml
  17. vars:
  18. obj_name: logging-es-cluster
  19. ports:
  20. - {port: 9300}
  21. labels:
  22. logging-infra: support
  23. selector:
  24. provider: openshift
  25. component: es
  26. check_mode: no
  27. changed_when: no
  28. - name: Generating logging-kibana service
  29. template: src=service.j2 dest={{mktemp.stdout}}/templates/logging-kibana-svc.yaml
  30. vars:
  31. obj_name: logging-kibana
  32. ports:
  33. - {port: 443, targetPort: oaproxy}
  34. labels:
  35. logging-infra: support
  36. selector:
  37. provider: openshift
  38. component: kibana
  39. check_mode: no
  40. changed_when: no
  41. - name: Generating logging-es-ops service
  42. template: src=service.j2 dest={{mktemp.stdout}}/templates/logging-es-ops-svc.yaml
  43. vars:
  44. obj_name: logging-es-ops
  45. ports:
  46. - {port: 9200, targetPort: restapi}
  47. labels:
  48. logging-infra: support
  49. selector:
  50. provider: openshift
  51. component: es-ops
  52. when: openshift_logging_use_ops | bool
  53. check_mode: no
  54. changed_when: no
  55. - name: Generating logging-es-ops-cluster service
  56. template: src=service.j2 dest={{mktemp.stdout}}/templates/logging-es-ops-cluster-svc.yaml
  57. vars:
  58. obj_name: logging-es-ops-cluster
  59. ports:
  60. - {port: 9300}
  61. labels:
  62. logging-infra: support
  63. selector:
  64. provider: openshift
  65. component: es-ops
  66. when: openshift_logging_use_ops | bool
  67. check_mode: no
  68. changed_when: no
  69. - name: Generating logging-kibana-ops service
  70. template: src=service.j2 dest={{mktemp.stdout}}/templates/logging-kibana-ops-svc.yaml
  71. vars:
  72. obj_name: logging-kibana-ops
  73. ports:
  74. - {port: 443, targetPort: oaproxy}
  75. labels:
  76. logging-infra: support
  77. selector:
  78. provider: openshift
  79. component: kibana-ops
  80. when: openshift_logging_use_ops | bool
  81. check_mode: no
  82. changed_when: no
  83. - name: Generating logging-mux service for external connections
  84. template: src=service.j2 dest={{mktemp.stdout}}/templates/logging-mux-svc.yaml
  85. vars:
  86. obj_name: logging-mux
  87. ports:
  88. - {port: "{{openshift_logging_mux_port}}", targetPort: mux-forward, name: mux-forward}
  89. labels:
  90. logging-infra: support
  91. selector:
  92. provider: openshift
  93. component: mux
  94. externalIPs:
  95. - "{{ ansible_eth0.ipv4.address }}"
  96. check_mode: no
  97. changed_when: no
  98. when: openshift_logging_mux_allow_external
  99. - name: Generating logging-mux service for intra-cluster connections
  100. template: src=service.j2 dest={{mktemp.stdout}}/templates/logging-mux-svc.yaml
  101. vars:
  102. obj_name: logging-mux
  103. ports:
  104. - {port: "{{openshift_logging_mux_port}}", targetPort: mux-forward, name: mux-forward}
  105. labels:
  106. logging-infra: support
  107. selector:
  108. provider: openshift
  109. component: mux
  110. check_mode: no
  111. changed_when: no
  112. when: openshift_logging_use_mux and not openshift_logging_mux_allow_external