Skip to content

Commit

Permalink
added pd subsystem files (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
EliFeinberg authored Mar 22, 2024
1 parent 895acaf commit 78f8008
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
31 changes: 31 additions & 0 deletions data/tidb-operator/pd-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"deploy": {
"steps": [
{
"apply": {
"file": "data/tidb-operator/crd.yaml",
"namespace": null
}
},
{
"apply": {
"file": "data/tidb-operator/bundle.yaml",
"operator": true
}
}
]
},
"crd_name": "tidbclusters.pingcap.com",
"seed_custom_resource": "data/tidb-operator/cr.yaml",
"example_dir": "data/tidb-operator/examples",
"analysis": {
"github_link": "https://github.com/pingcap/tidb-operator.git",
"commit": "acf57346c962a0bdb9d5c1de8870c332c5adc185",
"entrypoint": "cmd/controller-manager",
"type": "TidbCluster",
"package": "github.com/pingcap/tidb-operator/pkg/apis/pingcap/v1alpha1"
},
"focus_fields": [
["spec", "pd"]
]
}
51 changes: 51 additions & 0 deletions data/tidb-operator/pd-cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: pingcap.com/v1alpha1
kind: TidbCluster
metadata:
name: test-cluster
spec:
version: "v5.4.0"
timezone: UTC
configUpdateStrategy: RollingUpdate
helper:
image: busybox:1.34.1
pvReclaimPolicy: Retain
enableDynamicConfiguration: true
pd:
baseImage: pingcap/pd
config: |
[dashboard]
internal-proxy = true
replicas: 3
maxFailoverCount: 0
requests:
storage: 10Gi
mountClusterClientSecret: true
tidb:
baseImage: pingcap/tidb
config: |
[performance]
tcp-keep-alive = true
replicas: 3
maxFailoverCount: 0
service:
type: NodePort
externalTrafficPolicy: Local
tikv:
baseImage: pingcap/tikv
config: |
log-level = "info"
replicas: 3
maxFailoverCount: 0
separateRaftLog: true # should be enabled
requests:
storage: 100Gi
mountClusterClientSecret: true
recoverFailover: false # should be enabled
# tlsCluster:
# enabled: true # should be enabled
# cluster:
# clusterDomain: asdasd # this is a bug of tidb
# name: obsakkicls # this is a bug of tidb
# namespace: zmmwzofdbq # this is a bug of tidb
# discovery:
# configUpdateStrategy: RollingUpdate # this is a bug of tidb

0 comments on commit 78f8008

Please sign in to comment.