forked from crazy-max/docker-matomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
03-deployment.yaml
62 lines (62 loc) · 1.55 KB
/
03-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: matomo-deployment
namespace: matomo
spec:
replicas: 1
selector:
matchLabels:
app: matomo
template:
metadata:
name: matomo
labels:
app: matomo
spec:
containers:
# In production you should set a specific tag
- image: crazymax/matomo:latest
imagePullPolicy: Always
name: matomo
env:
# To use with ingress-nginx allow nginx RealIP for all IPs @see Issue #8
- name: REAL_IP_FROM
value: "0.0.0.0/0"
# resources:
# requests:
# memory: "128Mi"
# cpu: "100m"
# limits:
# memory: "256Mi"
# cpu: "500m"
ports:
- containerPort: 8000
name: web
volumeMounts:
- name: matomo-data
mountPath: /data
- image: crazymax/matomo:latest
imagePullPolicy: Always
name: matomo-cron
env:
- name: SIDECAR_CRON
value: "1"
- name: CRON_GEOIP
value: "0 4 * * *"
- name: CRON_ARCHIVE
value: "0 * * * *"
# resources:
# requests:
# memory: "128Mi"
# cpu: "150m"
# limits:
# memory: "256Mi"
# cpu: "500m"
volumeMounts:
- name: matomo-data
mountPath: /data
volumes:
- name: matomo-data
persistentVolumeClaim:
claimName: matomo-data-pvc