forked from tompizmor/bitnami-docker-piwik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yaml
93 lines (92 loc) · 1.73 KB
/
test.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
## This is test deployment for Kubernetes platforms.
## This is _not_ intended to be use in producction.
##
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: test-mariadb
name: test-mariadb
spec:
replicas: 1
selector:
matchLabels:
app: test-mariadb
template:
metadata:
labels:
app: test-mariadb
spec:
containers:
- image: bitnami/mariadb
name: test-mariadb
env:
- name: MARIADB_USER
value: bn_matomo
- name: MARIADB_DATABASE
value: bitnami_matomo
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: test-matomo
name: test-matomo
spec:
replicas: 1
selector:
matchLabels:
app: test-matomo
template:
metadata:
labels:
app: test-matomo
spec:
containers:
- image: bitnami/matomo
name: test-matomo
env:
- name: MARIADB_HOST
value: test-mariadb
- name: MARIADB_PORT_NUMBER
value: "3306"
- name: MATOMO_DATABASE_USER
value: bn_matomo
- name: MATOMO_DATABASE_NAME
value: bitnami_matomo
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
---
apiVersion: v1
kind: Service
metadata:
labels:
app: test-mariadb
name: test-mariadb
spec:
ports:
- port: 3306
protocol: TCP
targetPort: 3306
selector:
app: test-mariadb
sessionAffinity: None
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: test-matomo
name: test-matomo
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 80
selector:
app: test-matomo
sessionAffinity: None
type: ClusterIP