2021-05-05 16:35:43 +00:00
|
|
|
{{- if .Values.rabbitmq.istio.enabled }}
|
|
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
|
|
kind: VirtualService
|
|
|
|
metadata:
|
|
|
|
name: rabbit-amqp
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
{{ include "kubezero-lib.labels" . | indent 4 }}
|
|
|
|
spec:
|
|
|
|
gateways:
|
|
|
|
- {{ .Values.rabbitmq.istio.gateway }}
|
|
|
|
hosts:
|
|
|
|
{{ toYaml .Values.rabbitmq.hosts | indent 2 }}
|
2022-12-06 15:42:18 +00:00
|
|
|
http:
|
|
|
|
- route:
|
|
|
|
- destination:
|
|
|
|
host: rabbitmq
|
|
|
|
port:
|
|
|
|
number: 15672
|
2021-05-05 16:35:43 +00:00
|
|
|
tcp:
|
|
|
|
- match:
|
2022-12-06 15:42:18 +00:00
|
|
|
- port: 5671
|
2021-05-05 16:35:43 +00:00
|
|
|
route:
|
|
|
|
- destination:
|
2022-12-06 15:42:18 +00:00
|
|
|
host: rabbitmq
|
2021-05-05 16:35:43 +00:00
|
|
|
port:
|
|
|
|
number: 5672
|
2023-04-12 11:14:31 +00:00
|
|
|
{{- if .Values.rabbitmq.istio.amqp }}
|
|
|
|
- match:
|
|
|
|
- port: 5672
|
|
|
|
route:
|
|
|
|
- destination:
|
|
|
|
host: rabbitmq
|
|
|
|
port:
|
|
|
|
number: 5672
|
|
|
|
{{- end }}
|
2022-12-06 15:42:18 +00:00
|
|
|
{{- if .Values.rabbitmq.istio.mqtts }}
|
2021-05-05 16:35:43 +00:00
|
|
|
- match:
|
2022-12-06 15:42:18 +00:00
|
|
|
- port: 8883
|
2021-05-05 16:35:43 +00:00
|
|
|
route:
|
|
|
|
- destination:
|
2022-12-06 15:42:18 +00:00
|
|
|
host: rabbitmq
|
2021-05-05 16:35:43 +00:00
|
|
|
port:
|
2022-12-06 15:42:18 +00:00
|
|
|
number: 1883
|
|
|
|
{{- end }}
|
2023-01-12 21:58:32 +00:00
|
|
|
{{- if .Values.rabbitmq.istio.mqtt }}
|
|
|
|
- match:
|
|
|
|
- port: 1883
|
|
|
|
route:
|
|
|
|
- destination:
|
|
|
|
host: rabbitmq
|
|
|
|
port:
|
|
|
|
number: 1883
|
|
|
|
{{- end }}
|
2021-05-05 16:35:43 +00:00
|
|
|
{{- end }}
|