admin 管理员组文章数量: 887021
2024年2月28日发(作者:weight的词形变化)
- raftname: tidb-operatorsources:version: 0.1.0---# Default values for tidb-operator# clusterScoped is whether tidb-operator should manage kubernetes cluster wide tidb clusters# Also see and eAccountclusterScoped: true# Also see clusterScoped and eAccountrbac: create: true# operatorImage is TiDB Operator imageoperatorImage: pingcap/tidb-operator:latestimagePullPolicy: IfNotPresentdefaultStorageClassName: local-storagecontrollerManager: # With =false, the user is responsible for creating this account # With =true, this service account will be created # Also see and clusterScoped serviceAccount: tidb-controller-manager logLevel: 2 replicas: 1 resources: limits: cpu: 250m memory: 150Mi requests: cpu: 80m
limits: cpu: 4000m memory: 4Gi requests: cpu: 1000m memory: 1Gi storage: 1Gitikv: replicas: 3 resources: limits: cpu: 16000m memory: 10Gi storage: 100Gi requests: cpu: 1000m memory: 2Gi storage: 5Gitidb: separateSlowLog: True replicas: 3 resources: limits: cpu: 16000m memory: 6Gi requests: cpu: 1000m memory: 1Gimonitor:
helm install --name w11backup ./charts/tidb-backup/ -f ./w11_ --namespace tidb查看jobkubectl get jobs --namespace default -l /component=backup查看备份信息kubectl -n tidb get pvkubectl -n tidb get pv local-pv-e85e3bd9 -o yaml发现在node1上创建crontabjob
storageClassName: local-storage storage: 10Gi # parallel worker count (default 1) workerCount: 1 # the interval time (in seconds) of detect pumps' status (default 10) detectInterval: 10 # disbale detect causality disableDetect: false # disable dispatching sqls that in one same binlog; if set true, work-count and txn-batch would be useless disableDispatch: false # # disable sync these schema ignoreSchemas: "INFORMATION_SCHEMA,PERFORMANCE_SCHEMA,mysql,test" # if drainer donesn't have checkpoint, use initial commitTS to initial checkpoint initialCommitTs: 0 # enable safe mode to make syncer reentrant safeMode: false # number of binlog events in a transaction batch (default 1) txnBatch: 1 # downstream storage, equal to --dest-db-type # valid values are "mysql", "pb", "kafka" destDBType: pb mysql: {} # host: "127.0.0.1" # user: "root" # password: "" # port: 3306 # # Time and size limits for flash batch write # timeLimit: "30s" # sizeLimit: "100000"
kafka: {} # only need config one of zookeeper-addrs and kafka-addrs, will get kafka address if zookeeper-addrs is configed. # zookeeperAddrs: "127.0.0.1:2181" # kafkaAddrs: "127.0.0.1:9092" # kafkaVersion: "0.8.2.0"scheduledBackup: create: false binlogImage: pingcap/tidb-binlog:v2.1.0 binlogImagePullPolicy: IfNotPresent mydumperImage: pingcap/tidb-cloud-backup:latest mydumperImagePullPolicy: IfNotPresent # storageClassName is a StorageClass provides a way for administrators to describe the "classes" of storage they offer. # different classes might map to quality-of-service levels, or to backup policies, # or to arbitrary policies determined by the cluster administrators. storageClassName: local-storage storage: 100Gi schedule: "0 0 * * *" suspend: false successfulJobsHistoryLimit: 3 failedJobsHistoryLimit: 1 startingDeadlineSeconds: 3600 options: "--chunk-filesize=100" # secretName is the name of the secret which stores user and password used for backup # Note: you must give the user enough privilege to do the backup # you can create the secret by: # kubectl create secret generic backup-secret --from-literal=user=root --from-literal=password=
gc: 7 heartbeatInterval: 2 drainer: create: true image: pingcap/tidb-binlog:v2.1.0 imagePullPolicy: IfNotPresent logLevel: info storageClassName: local-storage storage: 10Gi # parallel worker count (default 1) workerCount: 10 # the interval time (in seconds) of detect pumps' status (default 10) detectInterval: 10 # disbale detect causality disableDetect: false # disable dispatching sqls that in one same binlog; if set true, work-count and txn-batch would be useless disableDispatch: false # # disable sync these schema ignoreSchemas: "INFORMATION_SCHEMA,PERFORMANCE_SCHEMA,mysql,test" # if drainer donesn't have checkpoint, use initial commitTS to initial checkpoint initialCommitTs: 0 # enable safe mode to make syncer reentrant safeMode: false # number of binlog events in a transaction batch (default 1) txnBatch: 10 # downstream storage, equal to --dest-db-type # valid values are "mysql", "pb", "kafka" destDBType: pb mysql: {}
版权声明:本文标题:K8S使用Operator部署和管理TIDB 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1709056275h537336.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论