原创;微信公众号:千里行走;
受限图片大小限制,有些图片不是很清晰,可以到微信公众号查看;
提供helm和yaml两种部署方式。
Helm部署步骤详见笔者git地址:
https://github.com/hepyu/k8s-app-config/tree/master/helm/min-cluster-allinone/es-min
yaml部署步骤详见笔者git地址:
https://github.com/hepyu/k8s-app-config/tree/master/yaml/min-cluster-allinone/es-min
目录
(1).容器化组件
(2).helm容器化方式
1.镜像准备
2.部署存储卷
3.helm部署master node
4.helm部署ingest node
5.helm部署data node
(3).yaml容器化方式
(4).yaml配置文件重点详解
1.pod亲和性
2.pod优雅关闭
3.pvc保护设置
正文
(1).容器化组件
容器化成功后的组件,因为是demo,所以replica=1,笔者的demo机器配置不高,需要节约。
(2).helm容器化方式
1.镜像准备
docker pull elasticsearch:6.4.3
重命名镜像为:docker.elastic.co/elasticsearch/elasticsearch:6.4.3
docker images |grep elasticsearch |awk '{print "docker tag