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

23 lines
467 B
YAML
Raw Permalink Normal View History

2021-08-11 12:59:44 +00:00
{{- 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: nats
2021-08-11 12:59:44 +00:00
port:
number: 1883
{{- end }}