简单记录3个vm部署k8s到启动tidb
1.vm部署k8shttps://blog.csdn.net/yakerang/article/details/102316104https://blog.csdn.net/yakerang/article/details/1025254312.安装nfs(master节点安装即可,目的是为下一步提供storageclass)3.部署helm :https://www.jianshu.co...
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/
更多推荐
所有评论(0)