-
Hi all, apiVersion: broker.amq.io/v1beta1
kind: ActiveMQArtemis
metadata:
name: exoo
spec:
deploymentPlan:
size: 2
labels:
app: artemis-cluster
acceptors:
- name: tcp-mqtt
protocols: MQTT
port: 61616
expose: false
sslEnabled: false
- name: tcp-mqtt-tls
protocols: MQTT
port: 61617
expose: false
sslEnabled: true
needClientAuth: true
verifyHost: false and I saw that an headless service has been created with only these ports ports:
- name: console-jolokia
port: 8161
protocol: TCP
targetPort: 8161
- name: all
port: 61616
protocol: TCP
targetPort: 61616 Do I need to create a new one for the acceptor tcp-mqtt-tls? I need it because I have to configure an Istio Gatewy and an Istio Virtual Service to expose it outside the cluster something like apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: mqtt-ssl-gateway
spec:
hosts:
- "artemisbroker.sap.dev"
gateways:
- artemis-gateway
tls:
- match:
- port: 61617
sniHosts:
- "artemisbroker.sap.dev"
route:
- destination:
host: exoo-tcp-mqtt-tls-0-svc
port:
number: 61617 But as you can see inside the destination field you can specify a single host so with two nodes this doesn't work becasue there is one service per Artemis node namely
Any advice? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
the default services are created to expose a single broker pod - they all contain the ordinal in a selector. |
Beta Was this translation helpful? Give feedback.
the default services are created to expose a single broker pod - they all contain the ordinal in a selector.
you will need to manually create a service that will match all ordinals to have a single entry point for your mqtt traffic.