Deploy TiDB on AWS EKS

本文档介绍了如何在AWS Elastic Kubernetes Service (EKS) 上部署TiDB集群。首先确保安装了Helm和eksctl等工具。然后创建EKS集群和节点池,接着部署TiDB Operator和TiDB集群,包括TidbCluster和TidbMonitor的配置文件。最后,可以通过MySQL客户端访问部署的TiDB数据库,并了解如何升级和扩展集群。
摘要由CSDN通过智能技术生成

导读

作者:杨漆
16年关系型数据库管理,从oracle 9i 、10g、11g、12c到Mysql5.5、5.6、5.7、8.0 到TiDB获得3个OCP、2个OCM;运维路上不平坦,跌过不少坑、熬过许多夜。把工作笔记整理出来分享给大伙儿,希望帮到大家少走弯路、少熬夜。

how to deploy a TiDB cluster on AWS Elastic Kubernetes Service (EKS) ?
PrerequisitesBefore deploying a TiDB cluster on AWS EKS, make sure the following requirements are satisfied:
Install Helm: used for deploying TiDB Operator.
Complete all operations in Getting started with eksctl.
This guide includes the following contents:
Install and configure awscli.
Install and configure eksctl that is used for creating Kubernetes clusters.
Install kubectl.
Note:
The operations described in this document requires at least the minumum privileges needed by eksctl and the services privileges needed to create a Linux bastion host.
DeployThis section describes how to deploy EKS, TiDB operator, the TiDB cluster, and the monitoring component.
Create EKS and the node pool
apiVersion: eksctl.io/v1alpha5 kind: ClusterConfig metadata: name: region: us-west-2 nodeGroups: - name: admin desiredCapacity: 1 labels: dedicated: admin - name: tidb desiredCapacity: 2 labels: dedicated: tidb taints: dedicated: tidb:NoSchedule - name: pd desiredCapacity: 3 labels: dedicated: pd taints: dedicated: pd:NoSchedule - name: tikv desiredCapacity: 3 labels: dedicated: tikv taints: dedicated: tikv:NoSchedule
Save the configuration above as cluster.yaml, and replace with your desired cluster name. Execute the following command to create the cluster:
eksctl create cluster -f cluster.yaml
Note:
After executing the command above, you need to wait until the EKS cluster is successfully created and the node group is created and added in the EKS cluster. This proce

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值