如何在 Kuscia 中升级引擎镜像?

打开链接即可点亮社区Star,照亮技术的前进之路。

Github 地址:github.com/secretflow/...

Kuscia 支持在部署后升级引擎版本,本文档介绍如何在 Kuscia 中升级引擎镜像。

导入引擎镜像

Kuscia 提供脚本升级镜像和手动升级镜像两种方式,您可以根据自己的需求选择合适的方式。

脚本升级镜像

  1. 获取工具脚本

    shell 复制代码
    docker cp root-kuscia-autonomy-alice:/home/kuscia/scripts .
  2. 注册镜像

    点对点模式

    Autonomy 节点需要同时导入引擎镜像和注册 AppImage,下面以 root-kuscia-autonomy-alice 节点为例,其他 Autonomy 节点也需要进行导入

    shell 复制代码
    ./scripts/deploy/register_app_image.sh -c root-kuscia-autonomy-alice -i secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/secretflow-lite-anolis8:latest -f scripts/templates/app_image.secretflow.yaml --import

    中心化模式

    Master 节点注册 AppImage 即可,下面以 root-kuscia-master 为例

    shell 复制代码
    ./scripts/deploy/register_app_image.sh -c root-kuscia-master -i secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/secretflow-lite-anolis8:latest -f scripts/templates/app_image.secretflow.yaml

    Lite 节点导入引擎镜像即可,下面以 root-kuscia-lite-alice 节点为例,其他 Lite 节点也需要进行导入

    shell 复制代码
    ./scripts/deploy/register_app_image.sh -c root-kuscia-lite-alice -i secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/secretflow-lite-anolis8:latest --import

手动升级镜像

kuscia 命令支持在 RunC、RunP 模式中导入引擎镜像,使用示例如下:

  1. 登录到 Autonomy、Lite 节点中

    shell 复制代码
    docker exec -it ${USER}-kuscia-autonomy-alice bash
  2. 导入镜像

    执行 kuscia image 导入镜像,此处以 sf 镜像为例

    shell 复制代码
    # Import Image
    kuscia image pull secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/secretflow-lite-anolis8:1.11.0b1

    如果您使用的是私有仓库,请加上 creds 参数指定账户密码,示例如下:

    shell 复制代码
    # Import Image
    kuscia image pull --creds "user:password" private.registry.com/secretflow/secretflow-lite-anolis8:1.11.0b1

    如果您的环境无法访问镜像仓库,您也可以将镜像打成 tar 包传到容器里,然后通过 kuscia image load 导入,示例如下:

    shell 复制代码
    # Import Image
    kuscia image load -i secretflow-lite-anolis8.tar

    验证镜像导入成功

    shell 复制代码
    # View Image
    kuscia image list
  3. 注册 AppImage

    镜像导入之后需要在 Autonomy 和 Master 节点上修改 AppImage,Lite 节点无需执行,示例如下:

    shell 复制代码
    # Enter the master container
    docker exec -it ${USER}-kuscia-master bash
    
    # The appimage is based on the actual engine name, we use the default name of secretflow as an example.
    kubectl edit appimage secretflow-image
    
    # Modify the name and tag in the image field, then save and exit.
      image:
        name: xxx
        tag: xxx
相关推荐
GitCode官方41 分钟前
小米 MiMo‑V2.5 系列开源,正式入驻 AtomGit!旗舰模型完成全球多家主流芯⽚⼚商深度适配
开源·小米·atomgit
冬奇Lab3 小时前
一天一个开源项目(第87篇):Tank-OS —— Red Hat 工程师用一个周末,把 AI Agent 塞进了一个可启动的 Linux 镜像
人工智能·开源·资讯
a1117766 小时前
MonoGS 在 Jetson Orin Nano 上的部署与性能测试
python·开源·torch·cv
码途漫谈7 小时前
Easy-Vibe开发篇阅读笔记(二)——前端开发之Figma与MasterGo入门
人工智能·笔记·ai·开源·ai编程·figma
迪菲赫尔曼8 小时前
从 0 到 1 打造工业级推理控制台:UltraConsole(Ultralytics + FastAPI + React)开源啦!
前端·yolo·react.js·计算机视觉·开源·fastapi
中微子9 小时前
突然爆火的Warp 终端,开源1天破 4w Stars
linux·人工智能·开源
kobesdu10 小时前
连接大模型与物理机器人-RoboNeuron让机器人真正“听懂人话”
机器人·开源·ros·人形机器人
sitellla11 小时前
MySQL 入门:最流行的开源关系型数据库介绍
数据库·mysql·其他·开源
GEO索引未来12 小时前
国内首部GEO可信传播标准立项通过/DeepSeek-V4 正式上线并开源/Open AI、Google继续推进AI广告标准化
大数据·人工智能·gpt·ai·chatgpt·开源
炸裂狸花猫12 小时前
开源身份认证与访问管理平台 - Keycloak(二)
docker·云原生·容器·kubernetes·开源·keycloak·sso