Skip to content

Commit 872f64a

Browse files
committed
doc: Add sample ingress controllers page
1 parent bbd5283 commit 872f64a

File tree

2 files changed

+170
-0
lines changed

2 files changed

+170
-0
lines changed

doc/content/the-things-stack/host/kubernetes/generic/prerequisites/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ ports:
178178
exposedPort: 8886
179179
```
180180
181+
Examples of ingress controllers configurations can be found [here](https://www.thethingsindustries.com/docs/the-things-stack/host/kubernetes/generic/prerequisites/sample-ingress-controllers/).
182+
181183
#### 6. TLS Certificates
182184
183185
The Things Stack expects a [Kubernetes TLS Secret](https://kubernetes.io/docs/concepts/configuration/secret/#tls-secrets) which contains the server leaf certificates.
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
---
2+
title: "Sample ingress controllers"
3+
description: ""
4+
weight: 1
5+
aliases: [/getting-started/kubernetes/self-managed/prerequisites/sample-ingress-controllers]
6+
---
7+
8+
The following are examples of ingress controllers for {{% tts %}} deployment on Kubernetes.
9+
10+
<!--more-->
11+
12+
## Traefik
13+
14+
Example of a Traefik configuration provided through the values of an Traefik Helm chart. More info about the Helm chart can be found [here](https://github.com/traefik/traefik-helm-chart).
15+
16+
```yaml
17+
deployment:
18+
kind: "Deployment"
19+
replicas: 1
20+
ingressRoute:
21+
dashboard:
22+
enabled: false
23+
additionalArguments:
24+
- "--entrypoints.udp.udp.timeout=90s"
25+
- "--log.level=DEBUG"
26+
ports:
27+
web:
28+
protocol: "TCP"
29+
port: 1885
30+
expose:
31+
default: true
32+
exposedPort: 80
33+
redirectTo:
34+
port: "websecure"
35+
websecure:
36+
protocol: "TCP"
37+
port: 8885
38+
expose:
39+
default: true
40+
exposedPort: 443
41+
traefik:
42+
protocol: "TCP"
43+
port: 9000
44+
expose:
45+
default: false
46+
grpc:
47+
protocol: "TCP"
48+
port: 1884
49+
expose:
50+
default: true
51+
exposedPort: 1884
52+
grpcsecure:
53+
protocol: "TCP"
54+
port: 8884
55+
expose:
56+
default: true
57+
exposedPort: 8884
58+
gtwmqttv2:
59+
protocol: "TCP"
60+
port: 1881
61+
expose:
62+
default: true
63+
exposedPort: 1881
64+
gtwmqttv2secure:
65+
protocol: "TCP"
66+
port: 8881
67+
expose:
68+
default: true
69+
exposedPort: 8881
70+
gtwmqttv3:
71+
protocol: "TCP"
72+
port: 1882
73+
expose:
74+
default: true
75+
exposedPort: 1882
76+
gtwmqttv3secure:
77+
protocol: "TCP"
78+
port: 8882
79+
expose:
80+
default: true
81+
exposedPort: 8882
82+
semtechws:
83+
protocol: "TCP"
84+
port: 1887
85+
expose:
86+
default: true
87+
exposedPort: 1887
88+
semtechwssecure:
89+
protocol: "TCP"
90+
port: 8887
91+
expose:
92+
default: true
93+
exposedPort: 8887
94+
appmqtt:
95+
protocol: "TCP"
96+
port: 1883
97+
expose:
98+
default: true
99+
exposedPort: 1883
100+
appmqttsecure:
101+
protocol: "TCP"
102+
port: 8883
103+
expose:
104+
default: true
105+
exposedPort: 8883
106+
interop:
107+
protocol: "TCP"
108+
port: 8886
109+
expose:
110+
default: true
111+
exposedPort: 8886
112+
```
113+
114+
## Ingress NGINX
115+
116+
Example of an Ingress NGINX configuration provided through the values of an Ingress NGINX Helm chart. More info about the
117+
Helm chart can be found [here](https://artifacthub.io/packages/helm/bitnami/nginx).
118+
119+
```yaml
120+
fullnameOverride: "nginx"
121+
namespaceOverride: "ingress-nginx"
122+
kind: Deployment
123+
replicaCount: '1'
124+
config:
125+
log-level: "debug"
126+
error-log-level: "debug"
127+
# redirect port 80 to 443 for HTTP to HTTPS.
128+
ssl-redirect: "true"
129+
upstream-keepalive-timeout: '90s'
130+
service:
131+
ports:
132+
http: 80
133+
https: 443
134+
extraPorts:
135+
- name: semtechws
136+
port: 1887
137+
targetPort: 1887
138+
nodePorts:
139+
tcp:
140+
# http
141+
"80": "1885"
142+
# https
143+
"443": "8885"
144+
# grpc
145+
"1884": "1884"
146+
# grpcsecure
147+
"8844": "8884"
148+
# gtwmqttv2
149+
"1881": "1881"
150+
# gtwmqttv2secure
151+
"8881": "8881"
152+
# gtwmqttv3
153+
"1882": "1882"
154+
# gtwmqttv3secure
155+
"8882": "8882"
156+
# semtechws
157+
"1887": "1887"
158+
# semtechwssecure
159+
"8887": "8887"
160+
# appmqtt
161+
"1883": "1883"
162+
# appmqttsecure
163+
"8883": "8883"
164+
# interop
165+
"8886": "8886"
166+
udp:
167+
"1700": "1700"
168+
```

0 commit comments

Comments
 (0)