forked from keepers-team/webtlo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathk8s_webtlo.example.yaml
More file actions
84 lines (84 loc) · 1.55 KB
/
k8s_webtlo.example.yaml
File metadata and controls
84 lines (84 loc) · 1.55 KB
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
---
apiVersion: v1
kind: Service
metadata:
name: webtlo
namespace: keepers
spec:
selector:
app: webtlo
ports:
- port: 80
---
apiVersion: v1
kind: ConfigMap
metadata:
name: webtlo-config
namespace: keepers
data:
TZ: Europe/Moscow
WEBTLO_UID: "1000"
WEBTLO_GID: "1000"
WEBTLO_CRON: "true"
CRON_UPDATE: 15 0 * * *
CRON_CONTROL: "false"
CRON_KEEPERS: 45 0 * * *
CRON_REPORTS: 0 1 * * *
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: webtlo-data-pvc
namespace: keepers
spec:
storageClassName: longhorn
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webtlo
namespace: keepers
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: webtlo
strategy:
type: Recreate
template:
metadata:
labels:
app: webtlo
spec:
containers:
- name: webtlo
image: berkut174/webtlo:latest
envFrom:
- configMapRef:
name: webtlo-config
optional: false
imagePullPolicy: IfNotPresent
livenessProbe:
tcpSocket:
port: 80
failureThreshold: 3
resources:
requests:
cpu: 30m
memory: 256Mi
limits:
memory: 256Mi
volumeMounts:
- mountPath: /data
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: webtlo-data-pvc
---