Skip to content

Commit 78f8008

Browse files
authored
added pd subsystem files (#368)
1 parent 895acaf commit 78f8008

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed

data/tidb-operator/pd-config.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"deploy": {
3+
"steps": [
4+
{
5+
"apply": {
6+
"file": "data/tidb-operator/crd.yaml",
7+
"namespace": null
8+
}
9+
},
10+
{
11+
"apply": {
12+
"file": "data/tidb-operator/bundle.yaml",
13+
"operator": true
14+
}
15+
}
16+
]
17+
},
18+
"crd_name": "tidbclusters.pingcap.com",
19+
"seed_custom_resource": "data/tidb-operator/cr.yaml",
20+
"example_dir": "data/tidb-operator/examples",
21+
"analysis": {
22+
"github_link": "https://github.com/pingcap/tidb-operator.git",
23+
"commit": "acf57346c962a0bdb9d5c1de8870c332c5adc185",
24+
"entrypoint": "cmd/controller-manager",
25+
"type": "TidbCluster",
26+
"package": "github.com/pingcap/tidb-operator/pkg/apis/pingcap/v1alpha1"
27+
},
28+
"focus_fields": [
29+
["spec", "pd"]
30+
]
31+
}

data/tidb-operator/pd-cr.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
apiVersion: pingcap.com/v1alpha1
2+
kind: TidbCluster
3+
metadata:
4+
name: test-cluster
5+
spec:
6+
version: "v5.4.0"
7+
timezone: UTC
8+
configUpdateStrategy: RollingUpdate
9+
helper:
10+
image: busybox:1.34.1
11+
pvReclaimPolicy: Retain
12+
enableDynamicConfiguration: true
13+
pd:
14+
baseImage: pingcap/pd
15+
config: |
16+
[dashboard]
17+
internal-proxy = true
18+
replicas: 3
19+
maxFailoverCount: 0
20+
requests:
21+
storage: 10Gi
22+
mountClusterClientSecret: true
23+
tidb:
24+
baseImage: pingcap/tidb
25+
config: |
26+
[performance]
27+
tcp-keep-alive = true
28+
replicas: 3
29+
maxFailoverCount: 0
30+
service:
31+
type: NodePort
32+
externalTrafficPolicy: Local
33+
tikv:
34+
baseImage: pingcap/tikv
35+
config: |
36+
log-level = "info"
37+
replicas: 3
38+
maxFailoverCount: 0
39+
separateRaftLog: true # should be enabled
40+
requests:
41+
storage: 100Gi
42+
mountClusterClientSecret: true
43+
recoverFailover: false # should be enabled
44+
# tlsCluster:
45+
# enabled: true # should be enabled
46+
# cluster:
47+
# clusterDomain: asdasd # this is a bug of tidb
48+
# name: obsakkicls # this is a bug of tidb
49+
# namespace: zmmwzofdbq # this is a bug of tidb
50+
# discovery:
51+
# configUpdateStrategy: RollingUpdate # this is a bug of tidb

0 commit comments

Comments
 (0)