-
Notifications
You must be signed in to change notification settings - Fork 0
/
padfront.yml
70 lines (70 loc) · 1.73 KB
/
padfront.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cryptpadfrontend
namespace: cryptpad
spec:
selector:
matchLabels:
app: cryptpadfrontend
replicas: 3
template:
metadata:
labels:
app: cryptpadfrontend
spec:
containers:
- name: cryptpad-frontend
image: promasu/cryptpad:3.9.0
imagePullPolicy: Always
ports:
- containerPort: 3000
volumeMounts:
- name: config
mountPath: /cryptpad/config
volumes:
- name: config
configMap:
name: padfrontendconfig
---
apiVersion: v1
kind: Service
metadata:
name: cryptpad-frontend-service
namespace: cryptpad
spec:
selector:
app: cryptpadfrontend
ports:
- name: frontend
port: 3000
targetPort: 3000
---
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: cryptpad-frontend
namespace: cryptpad
generation: 1
annotations:
ingress.kubernetes.io/ssl-redirect: "true"
traefik.ingress.kubernetes.io/redirect-regex: "^/(register|login|settings|user|admin|pad|drive|poll|slide|code|whiteboard|sheet|oodoc|file|media|profile|contacts|todo|filepicker|debug|kanban|teams)$"
traefik.ingress.kubernetes.io/redirect-replacement: "https://cryptpad.piratenpartei.de/$1/"
spec:
rules:
- host: cryptpad.piratenpartei.de
http:
paths:
- path: /
backend:
serviceName: cryptpad-frontend-service
servicePort: 3000
- path: /blob
backend:
serviceName: cryptpad-api-service
servicePort: 3000
- path: /block
backend:
serviceName: cryptpad-api-service
servicePort: 3000