feat: add Istio support for NATS mqtt
This commit is contained in:
parent
c71be4d283
commit
4b89b9a6dc
@ -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:
|
||||
|
22
charts/kubezero-mq/templates/nats/istio-service.yaml
Normal file
22
charts/kubezero-mq/templates/nats/istio-service.yaml
Normal 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 }}
|
@ -18,6 +18,11 @@ nats:
|
||||
mqtt:
|
||||
enabled: false
|
||||
|
||||
istio:
|
||||
enabled: false
|
||||
# url: "mq.example.com"
|
||||
gateway: istio-ingress/private-ingressgateway
|
||||
|
||||
# rabbitmq
|
||||
rabbitmq:
|
||||
enabled: false
|
||||
|
Loading…
Reference in New Issue
Block a user