-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselfoss.yaml
92 lines (92 loc) · 1.62 KB
/
selfoss.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
---
apiVersion: v1
kind: Namespace
metadata:
name: selfoss
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: selfoss-pvc
namespace: selfoss
labels:
app: selfoss
spec:
storageClassName: ceph-block
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: selfoss
namespace: selfoss
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: selfoss
replicas: 1
template:
metadata:
labels:
app: selfoss
spec:
containers:
- name: selfoss
image: jibby0/selfoss:2.18
ports:
- containerPort: 8888
name: http-web-svc
volumeMounts:
- mountPath: "/selfoss/data"
name: data
env:
- name: CRON_PERIOD
value: 5m
livenessProbe:
httpGet:
path: /
port: 8888
failureThreshold: 10
initialDelaySeconds: 30
periodSeconds: 10
volumes:
- name: data
persistentVolumeClaim:
claimName: selfoss-pvc
---
apiVersion: v1
kind: Service
metadata:
name: selfoss-service
namespace: selfoss
spec:
selector:
app: selfoss
type: ClusterIP
ports:
- name: selfoss-web-port
protocol: TCP
port: 8888
targetPort: http-web-svc
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: selfoss
namespace: selfoss
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`selfoss.jibby.org`)
services:
- kind: Service
name: selfoss-service
port: 8888