我是靠谱客的博主 文艺玉米,这篇文章主要介绍自定义 rancher ui 并覆盖原有项目,现在分享给大家,希望可以做个参考。

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

最后

以上就是文艺玉米最近收集整理的关于自定义 rancher ui 并覆盖原有项目的全部内容,更多相关自定义内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(138)

评论列表共有 0 条评论

立即
投稿
返回
顶部