-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubplex.yml
54 lines (54 loc) · 1.01 KB
/
kubplex.yml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: plex
spec:
replicas: 1
template:
metadata:
labels:
app: plex
spec:
containers:
- name: ftpd
image: besn0847/ftpd
ports:
- containerPort: 20
- containerPort: 21
volumeMounts:
- name: ftp-persistent-storage
mountPath: /data
- name: plex-server
image: besn0847/plex
ports:
- containerPort: 32400
volumeMounts:
- name: ftp-persistent-storage
mountPath: /data
volumes:
- name: ftp-persistent-storage
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: svc-plex
labels:
run : plex
spec:
selector:
app: plex
type: NodePort
ports:
- name: port20
protocol: TCP
port: 20
nodePort: 30020
- name: port21
protocol: TCP
port: 21
nodePort: 30021
- name: port32400
protocol: TCP
port: 32400
nodePort: 30000