-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-deployment.yaml
66 lines (65 loc) · 1.25 KB
/
example-deployment.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: v1
kind: PersistentVolume
metadata:
name: mediscout-pv-volume
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mediscout-pv-claim
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 3Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mediscout-deployment
labels:
app: mediscout
spec:
replicas: 1
selector:
matchLabels:
app: mediscout
template:
metadata:
labels:
app: mediscout
spec:
containers:
- name: mediscout
image: <tagged image>
args: ["start"]
volumeMounts:
- name: mediscout-pv-storage
mountPath: /app/db
env:
- name: MEDICOVER_USER
value: ""
- name: MEDICOVER_PASS
value: ""
- name: NOTIFIERS_TELEGRAM_CHAT_ID
value: ""
- name: NOTIFIERS_TELEGRAM_TOKEN
value: ""
- name: REFRESH_TIME_S
value: "300"
volumes:
- name: mediscout-pv-storage
persistentVolumeClaim:
claimName: mediscout-pv-claim