-
Notifications
You must be signed in to change notification settings - Fork 3
/
tidb.yaml
45 lines (43 loc) · 838 Bytes
/
tidb.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: tidb
spec:
replicas: 3
template:
metadata:
labels:
app: tidb-cluster
spec:
containers:
- name: tidb
image: pingcap/tidb:latest
ports:
- containerPort: 4000
- containerPort: 10080
args: ["-L=info", "--store=tikv", "--path=pd:2379?cluster=1", "-P=4000"]
volumeMounts:
- name: timestamp
mountPath: /etc/localtime
volumes:
- name: timestamp
hostPath:
path: /etc/localtime
---
apiVersion: v1
kind: Service
metadata:
name: tidb
spec:
type: NodePort
ports:
- name: mysql
port: 4000
targetPort: 4000
nodePort: 30004
- name: status
port: 10080
targetPort: 10080
nodePort: 30005
selector:
app: tidb-cluster