-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzipkin-mysql.yaml
51 lines (51 loc) · 1017 Bytes
/
zipkin-mysql.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
apiVersion: v1
kind: Namespace
metadata:
name: tracing
---
apiVersion: v1
kind: Service
metadata:
name: zipkin-mysql-svc
namespace: tracing
spec:
ports:
- port: 3306
protocol: TCP
targetPort: 3306
selector:
service: zipkin-mysql
---
apiVersion: v1
kind: Pod
metadata:
name: zipkin-mysql
namespace: tracing
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
service: zipkin-mysql
spec:
containers:
- name: mysql
image: mysql:5.7
env:
- name: MYSQL_ROOT_PASSWORD
value: dsfoh234jhkjkfs
- name: MYSQL_USER
value: zipkin
- name: MYSQL_PASSWORD
value: klj234jkhkj534bkfwl
- name: MYSQL_DATABASE
value: zipkin
ports:
- name: client
containerPort: 3306
protocol: "TCP"
volumeMounts:
- name: mysql-data
mountPath: /var/lib/mysql
volumes:
- name: mysql-data
hostPath:
path: /var/lib/data/mysql/zipkin