-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubernetes.yaml
76 lines (76 loc) · 1.52 KB
/
kubernetes.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: apps/v1
kind: Deployment
metadata:
name: kerberos-turn
spec:
replicas: 1
selector:
matchLabels:
app: kerberos-turn
minReadySeconds: 10
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: kerberos-turn
spec:
hostNetwork: true
containers:
- name: kerberos-turn
image: kerberos/turn-stun:1.0.2732231355
env:
- name: KERBEROS_TURN_PUBLIC_IP
value: "185.3.92.181"
- name: KERBEROS_TURN_USERS
value: "username1=password1"
- name: KERBEROS_TURN_PORT
value: "1024"
- name: KERBEROS_TURN_REALM
value: "kerberos.io"
---
apiVersion: v1
kind: Service
metadata:
name: kerberos-turn-svc
spec:
selector:
app: kerberos-turn
ports:
- port: 1024
targetPort: 1024
type: LoadBalancer
#---
#apiVersion: v1
#kind: Service
#metadata:
# name: kerberos-turn-svc
# labels:
# app: kerberos-turn-svc
#spec:
# ports:
# - protocol: TCP
# port: 443
# targetPort: 4443
# name: http
# selector:
# app: kerberos-turn
#---
#apiVersion: extensions/v1beta1
#kind: Ingress
#metadata:
# name: kerberos-turn-ingress
# annotations:
# kubernetes.io/ingress.class: traefik
#spec:
# rules:
# - host: turn.kerberos.io
# http:
# paths:
# - path: /
# backend:
# serviceName: kerberos-turn-svc
# servicePort: 4443