feat: add Istio support for NATS mqtt

This commit is contained in:
Stefan Reimer 2021-08-11 14:59:44 +02:00
parent c00158c40e
commit 563045cd84
3 changed files with 28 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-mq
description: KubeZero umbrella chart for MQ systems like NATS, RabbitMQ
type: application
version: 0.2.1
version: 0.2.2
home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords:

View File

@ -0,0 +1,22 @@
{{- 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 }}

View File

@ -18,6 +18,11 @@ nats:
mqtt:
enabled: false
istio:
enabled: false
# url: "mq.example.com"
gateway: istio-ingress/private-ingressgateway
# rabbitmq
rabbitmq:
enabled: false