KubeZero/charts/kubezero-mq/templates/nats/istio-service.yaml

23 lines
487 B
YAML

{{- if .Values.nats.istio.enabled }}
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ .Release.Name }}-nats
namespace: {{ .Release.Namespace }}
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
spec:
hosts:
- {{ .Values.nats.istio.url }}
gateways:
- {{ .Values.nats.istio.gateway }}
tcp:
- match:
- port: 1883
route:
- destination:
host: {{ .Release.Name }}-nats
port:
number: 1883
{{- end }}