From 78f800800332412ad8824fd144c49d36d2bf6b79 Mon Sep 17 00:00:00 2001 From: Eli Feinberg Date: Fri, 22 Mar 2024 06:50:53 -0500 Subject: [PATCH] added pd subsystem files (#368) --- data/tidb-operator/pd-config.json | 31 +++++++++++++++++++ data/tidb-operator/pd-cr.yaml | 51 +++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 data/tidb-operator/pd-config.json create mode 100644 data/tidb-operator/pd-cr.yaml diff --git a/data/tidb-operator/pd-config.json b/data/tidb-operator/pd-config.json new file mode 100644 index 0000000000..65c238949b --- /dev/null +++ b/data/tidb-operator/pd-config.json @@ -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"] + ] +} diff --git a/data/tidb-operator/pd-cr.yaml b/data/tidb-operator/pd-cr.yaml new file mode 100644 index 0000000000..bf47ec5244 --- /dev/null +++ b/data/tidb-operator/pd-cr.yaml @@ -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