forked from pingcap/tidb-operator
/
tidb-cluster.yaml
41 lines (41 loc) · 1.16 KB
/
tidb-cluster.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
# IT IS NOT SUITABLE FOR PRODUCTION USE.
# This YAML describes a basic TiDB cluster with minimum resource requirements,
# which should be able to run in any Kubernetes cluster with storage support.
apiVersion: pingcap.com/v1alpha1
kind: TidbCluster
metadata:
name: basic
spec:
version: v4.0.6
timezone: UTC
pvReclaimPolicy: Delete
imagePullPolicy: IfNotPresent
discovery: {}
pd:
imagePullPolicy: IfNotPresent
baseImage: pingcap/pd
replicas: 1
# if storageClassName is not set, the default Storage Class of the Kubernetes cluster will be used
# storageClassName: local-storage
requests:
storage: "1Gi"
config: {}
tikv:
imagePullPolicy: IfNotPresent
baseImage: pingcap/tikv
replicas: 1
# if storageClassName is not set, the default Storage Class of the Kubernetes cluster will be used
# storageClassName: local-storage
requests:
storage: "1Gi"
config:
storage:
# In basic examples, we set this to avoid using too much storage.
reserve-space: "0MB"
tidb:
imagePullPolicy: IfNotPresent
baseImage: pingcap/tidb
replicas: 1
service:
type: ClusterIP
config: {}