-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubernetes.yaml
100 lines (98 loc) · 2.07 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: iptv-toolkit
labels:
app: iptv-toolkit
name: iptv-toolkit
spec:
replicas: 1
selector:
matchLabels:
app: iptv-toolkit
task: iptv-toolkit
template:
metadata:
labels:
app: iptv-toolkit
task: iptv-toolkit
spec:
hostNetwork: true
terminationGracePeriodSeconds: 0
containers:
- name: iptv-toolkit
image: losenmann/iptv-toolkit:latest
args:
- -S
- -U
- -W
ports:
- name: udpxy
containerPort: 4022
- name: web
containerPort: 4023
resources:
requests:
cpu: "50m"
memory: "128Mi"
limits:
cpu: "75m"
memory: "192Mi"
envFrom:
- configMapRef:
name: iptv-toolkit-configmap
volumeMounts:
- name: time-config
mountPath: /etc/localtime
readOnly: true
- name: tz-config
mountPath: /etc/timezone
readOnly: true
volumes:
- name: time-config
hostPath:
path: /etc/localtime
type: File
- name: tz-config
hostPath:
path: /etc/timezone
type: File
---
apiVersion: v1
kind: Service
metadata:
name: iptv-toolkit-service
spec:
ports:
- name: web
port: 4023
- name: udpxy
port: 4022
selector:
app: iptv-toolkit
task: iptv-toolkit
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: iptv-toolkit-ingress
spec:
rules:
- host: "foo.bar.com"
http:
paths:
- pathType: Prefix
path: /files
backend:
service:
name: iptv-toolkit-service
port:
number: 4023
- pathType: Prefix
path: /udp
backend:
service:
name: iptv-toolkit-service
port:
number: 4022