-
Notifications
You must be signed in to change notification settings - Fork 0
/
wuvt-site-prod.yaml
80 lines (80 loc) · 1.75 KB
/
wuvt-site-prod.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
apiVersion: v1
kind: Service
metadata:
name: wuvt-site-prod
labels:
app: wuvt-site
instance: prod
spec:
selector:
app: wuvt-site
instance: prod
ports:
- name: https
protocol: TCP
port: 8443
targetPort: 8443
externalIPs:
- 192.168.0.246
- 192.168.0.247
- 192.168.0.248
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: wuvt-site-prod
labels:
app: wuvt-site
instance: prod
spec:
replicas: 3
template:
metadata:
labels:
app: wuvt-site
instance: prod
spec:
containers:
- name: wuvt-site
image: ghcr.io/wuvt/wuvt-site:latest
env:
- name: APP_CONFIG_PATH
value: /data/config/config.json
ports:
- containerPort: 8443
volumeMounts:
- name: wuvt-site-prod-config
mountPath: /data/config
readOnly: true
- name: wuvt-site-prod-ssl
mountPath: /data/ssl
readOnly: true
- name: wuvt-site-prod-media
mountPath: /data/media
- name: tzinfo
mountPath: /etc/localtime
readOnly: true
volumes:
- name: wuvt-site-prod-config
secret:
secretName: wuvt-site-prod.config
- name: wuvt-site-prod-ssl
secret:
secretName: wuvt-site-prod.tls
items:
- key: tls.crt
path: cert.pem
- key: tls.key
path: privkey.pem
mode: 384
- name: wuvt-site-prod-media
cephfs:
monitors:
- 192.168.0.234:6789
path: /wuvt-site-prod/media
user: k8s
secretRef:
name: ceph-k8s
- name: tzinfo
hostPath:
path: /usr/share/zoneinfo/America/New_York