ElasticSearch容器化从0到1实践(一)

背景

通过kubernetes集群聚合多个Elasticsearch集群碎片资源,提高运维效率。

介绍

Kubernetes Operator 是一种特定的应用控制器,通过 CRD(Custom Resource Definitions,自定义资源定义)扩展 Kubernetes API 的功能,可以用它来创建、配置和管理特定的有状态应用,而不需要直接去使用 Kubernetes 中最原始的一些资源对象。

Elastic Cloud on Kubernetes(ECK) 是其中的一种 Kubernetes Operator,方便我们管理 Elastic Stack 家族中的各种组件,例如 Elasticsearch,Kibana,APM,Beats 等等。比如只需要定义一个 Elasticsearch 类型的 CRD 对象,ECK 就可以帮助我们快速搭建出一套 Elasticsearch 集群。

版本要求

以下为官方给出的版本要求列表,按照实际业务进行评估,确定具体的实施版本和实施方案。

  • Kubernetes 1.24-1.27
  • OpenShift 4.8-4.12
  • Google Kubernetes Engine (GKE), Azure Kubernetes Service (AKS), and Amazon Elastic Kubernetes Service (EKS)
  • Helm: 3.2.0+
  • Elasticsearch, Kibana, APM Server: 6.8+, 7.1+, 8+
  • Enterprise Search: 7.7+, 8+
  • Beats: 7.0+, 8+
  • Elastic Agent: 7.10+ (standalone), 7.14+ (Fleet), 8+
  • Elastic Maps Server: 7.11+, 8+
  • Logstash: 8.7+

实施

现有环境使用方式较为单一,存在2种版本的Elasticsearch集群,其中只有大约一半的7.0+版本符合迁移要求。

现有Kubernetes集群版本为1.24以下,在实际测试和使用中 ECK 2.8版本也是可以的,为了避免误导,建议按照官方建议选择ECK版本。

kubernets与ECK版本兼容参考下表。

Release DateKubernetes Compatible VersionsOpenShift Compatible VersionsVMware Tanzu Kubernetes Grid Versions
Elastic Cloud on Kubernetes 1.0.x2020/1/151.11-1.213.11, 4.1-4.8
Elastic Cloud on Kubernetes 1.1.x2020/4/281.11-1.213.11, 4.1-4.8
Elastic Cloud on Kubernetes 1.2.x2020/8/181.11-1.213.11, 4.1-4.8
Elastic Cloud on Kubernetes 1.3.x2020/11/191.11-1.213.11, 4.1-4.8
Elastic Cloud on Kubernetes 1.4.x2021/1/261.11-1.213.11, 4.1-4.8
Elastic Cloud on Kubernetes 1.5.x2021/3/231.11-1.213.11, 4.1-4.8
Elastic Cloud on Kubernetes 1.6.x2021/5/251.16-1.213.11, 4.3-4.8
Elastic Cloud on Kubernetes 1.7.x2021/8/31.17-1.223.11, 4.3-4.8
Elastic Cloud on Kubernetes 1.8.x2021/9/211.18-1.223.11, 4.4-4.8
Elastic Cloud on Kubernetes 1.9.x2021/12/71.18-1.223.11, 4.5-4.91.4
Elastic Cloud on Kubernetes 2.0.x2022/2/81.19-1.234.6-4.101.4
Elastic Cloud on Kubernetes 2.1.x2022/3/11.19-1.234.6-4.101.4
Elastic Cloud on Kubernetes 2.2.x2022/4/261.19-1.234.6-4.101.4
Elastic Cloud on Kubernetes 2.3.x2022/6/281.20-1.244.6-4.101.5.4
Elastic Cloud on Kubernetes 2.4.x2022/8/241.20-1.244.6-4.101.5.4
Elastic Cloud on Kubernetes 2.5.x2022/11/11.21-1.254.7-4.111.5.4
Elastic Cloud on Kubernetes 2.6.x2022/12/131.21-1.254.7-4.111.5.4
Elastic Cloud on Kubernetes 2.7.x2023/3/301.22-1.264.8-4.121.5.4
Elastic Cloud on Kubernetes 2.8.x2023/5/231.24-1.274.8-4.121.5.4
Elastic Cloud on Kubernetes 2.9.x2023/7/251.24-1.274.9-4.131.5.4

参考文档

支持的版本:https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s_supported_versions.html

支持一览表:https://www.elastic.co/cn/support/matrix#matrix_kubernetes

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值