• 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

  • 相关阅读:
    11+ chrome高级调试技巧,学会效率直接提升666%
    多路查找树
    [python]基于yolov10+gradio目标检测演示系统设计
    windows nodejs 15.0.0下载安装
    聊聊Linux 的 Page Cache
    《C++ Primer》练习9.52:使用栈实现四则运算
    【踩坑专栏】 Could not write JSON: No serializer found for class
    《深度学习初探:使用TensorFlow和Keras构建你的第一个神经网络》
    美创数据库安全审计DAS通过IPv6 Ready Logo认证
    [NLP]TRL 正式推出,来训练你的首个 RLHF 模型
  • 原文地址:https://blog.csdn.net/u012881331/article/details/133775396