1.vm部署k8s
https://blog.csdn.net/yakerang/article/details/102316104
https://blog.csdn.net/yakerang/article/details/102525431
2.安装nfs(master节点安装即可,目的是为下一步提供storageclass)
3.部署helm :https://www.jianshu.com/p/4bd853a8068b
4.部署nfs-client(作为默认的storageclass)
相关知识:https://www.cnblogs.com/rexcheny/p/10925464.html
部署操作:helm install stable/nfs-client-provisioner --set nfs.server=x.x.x.x --set nfs.path=/exported/path
5.设置为默认storageclass

kubectl patch storageclass nfs-client -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

6.部署tidboperator
https://pingcap.com/docs-cn/dev/tidb-in-kubernetes/deploy/tidb-operator/#%E5%AE%89%E8%A3%85-tidb-operator
7.修改docker的maxopenfile
https://www.jianshu.com/p/b3b43b714c68
8.部署tidb-cluster(其中下载下来value.yaml后,修改sotrage class为上面nfs-client提供的(kubectl get storageclass),替换这里面的name
https://pingcap.com/docs-cn/dev/tidb-in-kubernetes/deploy/general-kubernetes/

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐