Skip to content

Commit 57e7ed1

Browse files
Merge pull request #15 from OS2iot/feature/IoT-1535_ChirpstackDomain
Added two services in helm for chirpstack
2 parents 3c515c9 + 5d2497c commit 57e7ed1

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

helm/charts/chirpstack/templates/service.yaml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,51 @@ metadata:
55
labels:
66
app: {{ $.Chart.Name }}
77
spec:
8-
type: ClusterIP
8+
type: LoadBalancer
99
ports:
1010
- name: http
1111
port: 8080
1212
targetPort: 8080
1313
protocol: TCP
14+
- name: grpc-to-ns
15+
port: 8001
16+
targetPort: 8001
17+
protocol: TCP
18+
- name: grpc-join
19+
port: 8003
20+
targetPort: 8003
21+
protocol: TCP
1422
- name: grpc
1523
port: 8000
1624
targetPort: 8000
1725
protocol: TCP
26+
selector:
27+
app: {{ $.Chart.Name }}
28+
29+
kind: Service
30+
apiVersion: v1
31+
metadata:
32+
name: {{ $.Chart.Name }}-clusterip-svc
33+
labels:
34+
app: {{ $.Chart.Name }}
35+
spec:
36+
type: ClusterIP
37+
ports:
38+
- name: internal-http
39+
port: 8081
40+
targetPort: 8080
41+
protocol: TCP
42+
- name: internal-grpc-to-ns
43+
port: 8002
44+
targetPort: 8001
45+
protocol: TCP
46+
- name: internal-grpc-join
47+
port: 8004
48+
targetPort: 8003
49+
protocol: TCP
50+
- name: internal-grpc
51+
port: 8005
52+
targetPort: 8000
53+
protocol: TCP
1854
selector:
1955
app: {{ $.Chart.Name }}

helm/charts/chirpstack/templates/virtualservice.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ spec:
1212
route:
1313
- destination:
1414
port:
15-
number: 8080
16-
host: "{{ $.Chart.Name }}-svc"
15+
number: 8081
16+
host: "{{ $.Chart.Name }}-clusterip-svc"
1717
headers:
1818
response:
1919
add:

0 commit comments

Comments
 (0)