记一次kubernetes测试环境搭建

第一步:安装kubernetes集群

参考:https://blog.csdn.net/hxpjava1/article/details/79309825

https://blog.csdn.net/hxpjava1/article/details/79752256

https://blog.csdn.net/hxpjava1/article/details/79465983

安装内容k8s集群,dashboard,elk

第二步安装heapster,promethous

https://blog.csdn.net/hxpjava1/article/details/79465983

https://github.com/kubernetes/heapster/releases

第三步安装helm

https://blog.csdn.net/hxpjava1/article/details/79664983

https://github.com/kubernetes/helm/releases

第四步安装nginx-ingress-controller

https://github.com/kubernetes/ingress-nginx

https://github.com/kubernetes/charts/tree/master/stable/nginx-ingress

第五步安装glusterfs heketi

heketi/heketi:5使用这个镜像,不然可能报错

先下载好镜像,不然会重复多次

https://github.com/gluster/gluster-kubernetes

https://github.com/gluster/gluster-kubernetes/blob/master/docs/setup-guide.md

https://blog.csdn.net/hxpjava1/article/details/79703609

如果glusterfs装不上可以改用ceph

安装rook

https://blog.csdn.net/hxpjava1/article/details/80175238

https://github.com/rook/rook/tree/master/cluster/examples/kubernetes

第六步安装harbor

https://github.com/vasartori/harbor-kubernetes

registry也可以用docker官方的registry

https://blog.csdn.net/hxpjava1/article/details/80180033

第七步安装mysql集群

第八部安装zookeeper集群

https://github.com/kubernetes/charts/tree/master/incubator/zookeeper

helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/

helm search zookeeper 

helm install --name zookeeper-cluster .

第九步安装redis集群

https://github.com/kubernetes/charts/tree/master/stable/redis-ha

第10部安装微服务

第11步安装elasticsearch集群

https://github.com/kubernetes/charts/tree/master/incubator/elasticsearch

第12步编写安装升级测试脚本

第13步安装fabric8


猜你喜欢

转载自blog.csdn.net/hxpjava1/article/details/79881149