Skip to content

Commit

Permalink
include mqtt-wss config for aws and azure installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-landiak committed Mar 27, 2024
1 parent aa42ad9 commit 6d8a102
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions k8s/aws/receipts/mqtt-load-balancer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ spec:
- port: 8883
targetPort: 8883
name: mqtts
# This way NLB acts as transparent load balancer and forwards all traffic to port 8085 without decryption.
- port: 8085
targetPort: 8085
name: mqtt-wss
6 changes: 5 additions & 1 deletion k8s/aws/receipts/mqtts-load-balancer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ metadata:
# Don't forget to replace YOUR_MQTTS_CERTIFICATE_ARN with the correct value
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: YOUR_MQTTS_CERTIFICATE_ARN
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "tcp"
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "mqtts"
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "mqtts,mqtt-wss"
spec:
type: LoadBalancer
externalTrafficPolicy: Local
Expand All @@ -46,3 +46,7 @@ spec:
- port: 8883
targetPort: 1883
name: mqtts
# This way NLB acts as an TLS termination point and forwards decrypted traffic to 8084 port of the TBMQ.
- port: 8085
targetPort: 8084
name: mqtt-wss
4 changes: 4 additions & 0 deletions k8s/aws/tb-broker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ spec:
name: mqtts
- containerPort: 8084
name: mqtt-ws
- containerPort: 8085
name: mqtt-wss
env:
- name: TB_SERVICE_ID
valueFrom:
Expand Down Expand Up @@ -156,3 +158,5 @@ spec:
name: mqtts
- port: 8084
name: mqtt-ws
- port: 8085
name: mqtt-wss
3 changes: 3 additions & 0 deletions k8s/azure/receipts/mqtt-load-balancer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ spec:
- port: 8883
targetPort: 8883
name: mqtts
- port: 8085
targetPort: 8085
name: mqtt-wss
4 changes: 4 additions & 0 deletions k8s/azure/tb-broker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ spec:
name: mqtts
- containerPort: 8084
name: mqtt-ws
- containerPort: 8085
name: mqtt-wss
env:
- name: TB_SERVICE_ID
valueFrom:
Expand Down Expand Up @@ -144,3 +146,5 @@ spec:
name: mqtts
- port: 8084
name: mqtt-ws
- port: 8085
name: mqtt-wss

0 comments on commit 6d8a102

Please sign in to comment.