低版本Manager部署es7.10.2

  其他常见问题
内容纲要

概要描述


本文描述在较低版本的Manager上部署开源es7.10.2的方式

详细说明


es7.10.2镜像下载

x86:链接: https://pan.baidu.com/s/1MejwiV-yNy39iMazzFdSsg 提取码: nf9m
arm:链接:https://pan.baidu.com/s/1xbeJmWsAeNbtGC-RkfuV7A 提取码:9t4v

部署步骤

  1. 将镜像压缩包上传至服务器并解压推送到仓库
    unzip es7.10.2-x86.tar.zip
    docker load -i es7.10.2.tar

    file

  2. 将es7.10.2的镜像重新tag并push至仓库中
    docker tag  :5000/transwarp/search:

    <es image>:替换成es7.10.2的镜像id
    <resgistry ip>:替换成实际集群的镜像仓库地址
    <new tage>:根据需要任意编写

    docker push :5000/transwarp/search:

    file

  3. 更新metainfo
    在manager节点的/var/lib/transwarp-manager/master/content/meta/services/SEARCH目录下,新建目录,目录名与第2步中的<new tage>名一致,如本次例子中使用的是transwarp-6.0.2-final-es-ose-7.10.2

    mkdir transwarp-6.0.2-final-es-ose-7.10.2

    复制集群所使用到的search产品包的metainfo至新目录中,本次例子中选择transwarp-6.0.2-final版本

    cp -r /var/lib/transwarp-manager/master/content/meta/services/SEARCH/transwarp-6.0.2-final/* /var/lib/transwarp-manager/master/content/meta/services/SEARCH/transwarp-6.0.2-final-es-ose-7.10.2

    修改transwarp-6.0.2-final-es-ose-7.10.2目录下的metainfo.yaml
    version的值修改为<new tage>
    file
    search-server角色的镜像名修改成第二步中对应的
    file
    config部分添加以下部分

        - directive: !
            templateType: Raw
            templatePath: "elastic-certificates.p12"
            targetPath: "/etc/${service.sid}/${roleGroupName}/conf/elastic-certificates.p12"
            mode: "600"
        - directive: !
            templateType: Raw
            templatePath: "elastic-stack-ca.p12"
            targetPath: "/etc/${service.sid}/${roleGroupName}/conf/elastic-stack-ca.p12"
            mode: "600"

    file

  4. 用TDH9的SEARCH-OSE的metainfo中的templates目录替换掉transwarp-6.0.2-final-es-ose-7.10.2下的templates
    下载TDH9的SEARCH-OSE的metainfo包:SEARCH-OSE
    解压后将ranswarp-6.0.2-final-es-ose-7.10.2/templates目录用SEARCH-OSE/7.10.2/templates目录替换

    cp SEARCH-OSE/7.10.2/templates/* /var/lib/transwarp-manager/master/content/meta/services/SEARCH/transwarp-6.0.2-final-es-ose-7.10.2/templates/

    file

  5. 修改transwarp-6.0.2-final-es-ose-7.10.2/templates下的elasticsearch.yml,将末尾的xpack.security.enabled与xpack.security.transport.ssl.enabled参数值都固定为true
    file
  6. 重启manager让metainfo生效
    systemctl restart transwarp-manager
  7. 重新登录manager后,点击应用市场右上角的检查更新后,选择search组件,此时就能选择安装es7.10.2的版本了
    file
    file

    注意事项


ose版本为纯净开源的es7.10.2版本,不会携带原search的功能,并且原search-head角色功能也不可使用

这篇文章对您有帮助吗?

平均评分 0 / 5. 次数: 0

尚无评价,您可以第一个评哦!

非常抱歉,这篇文章对您没有帮助.

烦请您告诉我们您的建议与意见,以便我们改进,谢谢您。