Skip to content

Instantly share code, notes, and snippets.

@emchristiansen
Last active March 20, 2023 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emchristiansen/d5ce1e0a38d36c96683950c0a16398a3 to your computer and use it in GitHub Desktop.
Save emchristiansen/d5ce1e0a38d36c96683950c0a16398a3 to your computer and use it in GitHub Desktop.
apiVersion: pingcap.com/v1alpha1
kind: TidbCluster
metadata:
name: basic
namespace: tidb-cluster
spec:
version: v6.5.0
timezone: UTC
pvReclaimPolicy: Retain
enableDynamicConfiguration: true
configUpdateStrategy: RollingUpdate
discovery: {}
helper:
image: alpine:3.16.0
pd:
baseImage: pingcap/pd
maxFailoverCount: 0
replicas: 3
requests:
storage: "1Gi"
config:
replication:
location-labels: ["topology.kubernetes.io/zone"]
max-replicas: 3
isolation-level: "topology.kubernetes.io/zone"
tikv:
baseImage: pingcap/tikv
maxFailoverCount: 0
evictLeaderTimeout: 1m
replicas: 3
requests:
storage: "5Gi"
config:
server:
labels:
zone: topology.kubernetes.io/zone
storage:
reserve-space: "128MB"
block-cache:
capacity: "1GB"
tidb:
baseImage: pingcap/tidb
maxFailoverCount: 0
replicas: 3
service:
type: ClusterIP
config: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment