-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyum-with-browser-longhorn.yaml
executable file
·66 lines (66 loc) · 1.32 KB
/
yum-with-browser-longhorn.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: yum-with-browser
labels:
app: yum-with-browser
spec:
replicas: 1
selector:
matchLabels:
app: yum-with-browser
template:
metadata:
labels:
app: yum-with-browser
spec:
volumes:
- name: yum-data-persistent-storage
persistentVolumeClaim:
claimName: yum-data-claim
containers:
- name: yum
image: runzhliu/yum-with-browser
imagePullPolicy: Always
securityContext:
privileged: true
volumeMounts:
- name: yum-data-persistent-storage
mountPath: /srv
- name: filebrowser
image: filebrowser/filebrowser
volumeMounts:
- name: yum-data-persistent-storage
mountPath: /srv
---
apiVersion: v1
kind: Service
metadata:
name: yum-with-browser
spec:
type: NodePort
ports:
- port: 8080
name: yum
targetPort: 8080
protocol: TCP
- port: 80
name: filebrowser
targetPort: 80
protocol: TCP
nodePort: 32600
selector:
app: yum-with-browser
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: yum-data-claim
spec:
storageClassName: longhorn
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi