ungleich-k8s/apps/workadventure/v3/templates/coturn.yaml

391 lines
9.1 KiB
YAML
Raw Normal View History

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-coturn
spec:
selector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: coturn
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: coturn
spec:
containers:
- name: coturn
image: coturn/coturn:4.5.2-alpine
ports:
- containerPort: 3478
name: port-3478
- containerPort: 5349
name: port-5349
- containerPort: 49160
name: port-49160
- containerPort: 49161
name: port-49161
- containerPort: 49162
name: port-49162
- containerPort: 49163
name: port-49163
- containerPort: 49164
name: port-49164
- containerPort: 49165
name: port-49165
- containerPort: 49166
name: port-49166
- containerPort: 49167
name: port-49167
- containerPort: 49168
name: port-49168
- containerPort: 49169
name: port-49169
- containerPort: 49170
name: port-49170
- containerPort: 49171
name: port-49171
- containerPort: 49172
name: port-49172
- containerPort: 49173
name: port-49173
- containerPort: 49174
name: port-49174
- containerPort: 49175
name: port-49175
- containerPort: 49176
name: port-49176
- containerPort: 49177
name: port-49177
- containerPort: 49178
name: port-49178
- containerPort: 49179
name: port-49179
- containerPort: 49180
name: port-49180
- containerPort: 49181
name: port-49181
- containerPort: 49182
name: port-49182
- containerPort: 49183
name: port-49183
- containerPort: 49184
name: port-49184
- containerPort: 49185
name: port-49185
- containerPort: 49186
name: port-49186
- containerPort: 49187
name: port-49187
- containerPort: 49188
name: port-49188
- containerPort: 49189
name: port-49189
- containerPort: 49190
name: port-49190
- containerPort: 49191
name: port-49191
- containerPort: 49192
name: port-49192
- containerPort: 49193
name: port-49193
- containerPort: 49194
name: port-49194
- containerPort: 49195
name: port-49195
- containerPort: 49196
name: port-49196
- containerPort: 49197
name: port-49197
- containerPort: 49198
name: port-49198
- containerPort: 49199
name: port-49199
- containerPort: 49200
name: port-49200
---
# for p in 3478 5349 {49160..49200}; do echo " - port: $p"; echo " name: port-$p" ; echo " protocol: TCP"; done
# for p in 3478 5349 {49160..49200}; do echo " - port: $p"; echo " name: port-$p-udp" ; echo " protocol: UDP"; done
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-coturn
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: coturn
spec:
type: ClusterIP
ports:
- port: 3478
name: port-3478
protocol: TCP
- port: 5349
name: port-5349
protocol: TCP
- port: 49160
name: port-49160
protocol: TCP
- port: 49161
name: port-49161
protocol: TCP
- port: 49162
name: port-49162
protocol: TCP
- port: 49163
name: port-49163
protocol: TCP
- port: 49164
name: port-49164
protocol: TCP
- port: 49165
name: port-49165
protocol: TCP
- port: 49166
name: port-49166
protocol: TCP
- port: 49167
name: port-49167
protocol: TCP
- port: 49168
name: port-49168
protocol: TCP
- port: 49169
name: port-49169
protocol: TCP
- port: 49170
name: port-49170
protocol: TCP
- port: 49171
name: port-49171
protocol: TCP
- port: 49172
name: port-49172
protocol: TCP
- port: 49173
name: port-49173
protocol: TCP
- port: 49174
name: port-49174
protocol: TCP
- port: 49175
name: port-49175
protocol: TCP
- port: 49176
name: port-49176
protocol: TCP
- port: 49177
name: port-49177
protocol: TCP
- port: 49178
name: port-49178
protocol: TCP
- port: 49179
name: port-49179
protocol: TCP
- port: 49180
name: port-49180
protocol: TCP
- port: 49181
name: port-49181
protocol: TCP
- port: 49182
name: port-49182
protocol: TCP
- port: 49183
name: port-49183
protocol: TCP
- port: 49184
name: port-49184
protocol: TCP
- port: 49185
name: port-49185
protocol: TCP
- port: 49186
name: port-49186
protocol: TCP
- port: 49187
name: port-49187
protocol: TCP
- port: 49188
name: port-49188
protocol: TCP
- port: 49189
name: port-49189
protocol: TCP
- port: 49190
name: port-49190
protocol: TCP
- port: 49191
name: port-49191
protocol: TCP
- port: 49192
name: port-49192
protocol: TCP
- port: 49193
name: port-49193
protocol: TCP
- port: 49194
name: port-49194
protocol: TCP
- port: 49195
name: port-49195
protocol: TCP
- port: 49196
name: port-49196
protocol: TCP
- port: 49197
name: port-49197
protocol: TCP
- port: 49198
name: port-49198
protocol: TCP
- port: 49199
name: port-49199
protocol: TCP
- port: 49200
name: port-49200
protocol: TCP
- port: 3478
name: port-3478-udp
protocol: UDP
- port: 5349
name: port-5349-udp
protocol: UDP
- port: 49160
name: port-49160-udp
protocol: UDP
- port: 49161
name: port-49161-udp
protocol: UDP
- port: 49162
name: port-49162-udp
protocol: UDP
- port: 49163
name: port-49163-udp
protocol: UDP
- port: 49164
name: port-49164-udp
protocol: UDP
- port: 49165
name: port-49165-udp
protocol: UDP
- port: 49166
name: port-49166-udp
protocol: UDP
- port: 49167
name: port-49167-udp
protocol: UDP
- port: 49168
name: port-49168-udp
protocol: UDP
- port: 49169
name: port-49169-udp
protocol: UDP
- port: 49170
name: port-49170-udp
protocol: UDP
- port: 49171
name: port-49171-udp
protocol: UDP
- port: 49172
name: port-49172-udp
protocol: UDP
- port: 49173
name: port-49173-udp
protocol: UDP
- port: 49174
name: port-49174-udp
protocol: UDP
- port: 49175
name: port-49175-udp
protocol: UDP
- port: 49176
name: port-49176-udp
protocol: UDP
- port: 49177
name: port-49177-udp
protocol: UDP
- port: 49178
name: port-49178-udp
protocol: UDP
- port: 49179
name: port-49179-udp
protocol: UDP
- port: 49180
name: port-49180-udp
protocol: UDP
- port: 49181
name: port-49181-udp
protocol: UDP
- port: 49182
name: port-49182-udp
protocol: UDP
- port: 49183
name: port-49183-udp
protocol: UDP
- port: 49184
name: port-49184-udp
protocol: UDP
- port: 49185
name: port-49185-udp
protocol: UDP
- port: 49186
name: port-49186-udp
protocol: UDP
- port: 49187
name: port-49187-udp
protocol: UDP
- port: 49188
name: port-49188-udp
protocol: UDP
- port: 49189
name: port-49189-udp
protocol: UDP
- port: 49190
name: port-49190-udp
protocol: UDP
- port: 49191
name: port-49191-udp
protocol: UDP
- port: 49192
name: port-49192-udp
protocol: UDP
- port: 49193
name: port-49193-udp
protocol: UDP
- port: 49194
name: port-49194-udp
protocol: UDP
- port: 49195
name: port-49195-udp
protocol: UDP
- port: 49196
name: port-49196-udp
protocol: UDP
- port: 49197
name: port-49197-udp
protocol: UDP
- port: 49198
name: port-49198-udp
protocol: UDP
- port: 49199
name: port-49199-udp
protocol: UDP
- port: 49200
name: port-49200-udp
protocol: UDP
selector:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: coturn
# See https://hub.docker.com/r/coturn/coturn
# tcp ports:
#
# Both tcp/udp:
# 3478 5349
# udp: {49160..49200}
#
# Generate using:
# for p in 3478 5349 {49160..49200}; do echo " - containerPort: $p"; echo " name: port-$p" ; done