/
web-deployment.yaml
52 lines (52 loc) · 1.14 KB
/
web-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: bookshelf
spec:
replicas: 3
selector:
matchLabels:
app: bookshelf
template:
metadata:
labels:
app: bookshelf
spec:
containers:
- name: bookshelf
image: ghcr.io/depontimatteo/bookshelf:1.0.0
imagePullPolicy: Always
env:
- name: PORT
value: "5000"
- name: REDIS_HOST
value: redis
- name: REDIS_PORT
value: "6379"
- name: REDIS_DB
value: "0"
- name: REDIS_PASS
valueFrom:
secretKeyRef:
name: redis
key: REDIS_PASS
- name: TZ
value: Europe/Rome
resources:
requests:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 5000
livenessProbe:
httpGet:
path: /healthcheck
port: 5000
initialDelaySeconds: 10
periodSeconds: 15
readinessProbe:
httpGet:
path: /healthcheck
port: 5000
initialDelaySeconds: 10
periodSeconds: 15