首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >自定义 rancher ui 并覆盖原有项目

自定义 rancher ui 并覆盖原有项目

作者头像
拿我格子衫来
发布2022-01-24 19:13:03
发布2022-01-24 19:13:03
4940
举报
文章被收录于专栏:TopFETopFE

Hosting remotely

If you want to customize the UI, re-packaging all of Rancher to distribute the UI is possible but not terribly convenient. Instead you can change Cattle to load the UI source from a remote web server:

  • Build with ./scripts/build-static -l -c 'your-server.com'
  • Upload ./dist/static/latest2 so that it's available at https://your-server.com/latest2
    • It must be available over HTTPS.
    • You can rename the "latest2" part with the -v flag
  • Change the value of http[s]://your-rancher:8080/v3/settings/ui-index to the same https://yourserver.com/latest2 URL

远程托管

如果要自定义UI,则可以重新打包所有Rancher以分发UI,但这并不是很方便。相反,您可以更改Cattle以从远程Web服务器加载UI源:

  • 建立 ./scripts/build-static -l -c 'your-server.com'
  • 上传./dist/static/latest2以便可以在https://your-server.com/latest2上使用
    • 它必须通过HTTPS可用。
    • 您可以使用-v标志重命名“ latest2”部分
  • 将http [s]:// your-rancher:8080 / v3 / settings / ui-index的值更改为相同的https://yourserver.com/latest2URL
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Hosting remotely
  • 远程托管
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档