Skip to content

Commit 3ee6b86

Browse files
Added AWS and Azure Edge load balancer receipts
1 parent 061cdfc commit 3ee6b86

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

aws/microservices/receipts/edge-load-balancer.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ kind: Service
33
metadata:
44
name: tb-edge-loadbalancer
55
namespace: thingsboard
6+
annotations:
7+
service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
8+
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
9+
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: "stickiness.enabled=true,stickiness.type=source_ip"
10+
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: ThingsBoardClusterELB=ThingsBoardGrpc
11+
# Don't forget to replace YOUR_GRPC_CERTIFICATE_ARN with the correct value.
12+
# OR comment/remove the following lines to disable TLS.
13+
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: YOUR_GRPC_CERTIFICATE_ARN
14+
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "7070"
615
spec:
716
type: LoadBalancer
817
externalTrafficPolicy: Local
@@ -11,4 +20,4 @@ spec:
1120
ports:
1221
- port: 7070
1322
targetPort: 7070
14-
name: edge
23+
name: edge
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: tb-grpc-loadbalancer-external
4+
name: tb-edge-loadbalancer
55
namespace: thingsboard
66
annotations:
77
service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
88
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
99
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: "stickiness.enabled=true,stickiness.type=source_ip"
1010
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: ThingsBoardClusterELB=ThingsBoardGrpc
11-
# Don't forget to replace YOUR_GRPC_CERTIFICATE_ARN with the correct value. Comment the following lines to disable TLS.
11+
# Don't forget to replace YOUR_GRPC_CERTIFICATE_ARN with the correct value.
12+
# OR comment/remove the following lines to disable TLS.
1213
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: YOUR_GRPC_CERTIFICATE_ARN
1314
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "7070"
1415
spec:
@@ -19,4 +20,4 @@ spec:
1920
ports:
2021
- port: 7070
2122
targetPort: 7070
22-
name: edge
23+
name: edge

azure/microservices/receipts/edge-load-balancer.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ kind: Service
33
metadata:
44
name: tb-edge-loadbalancer
55
namespace: thingsboard
6+
annotations:
7+
service.beta.kubernetes.io/azure-load-balancer-internal: "false"
68
spec:
79
type: LoadBalancer
810
externalTrafficPolicy: Local
@@ -11,4 +13,4 @@ spec:
1113
ports:
1214
- port: 7070
1315
targetPort: 7070
14-
name: edge
16+
name: edge
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: tb-edge-loadbalancer
5+
namespace: thingsboard
6+
annotations:
7+
service.beta.kubernetes.io/azure-load-balancer-internal: "false"
8+
spec:
9+
type: LoadBalancer
10+
externalTrafficPolicy: Local
11+
selector:
12+
app: tb-node
13+
ports:
14+
- port: 7070
15+
targetPort: 7070
16+
name: edge

0 commit comments

Comments
 (0)