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/latest2so that it's available at https://your-server.com/latest2- It must be available over HTTPS.
- You can rename the "latest2" part with the
-vflag
- Change the value of http[s]://your-rancher:8080/v3/settings/ui-index to the same
https://yourserver.com/latest2URL
远程托管
如果要自定义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 并覆盖原有项目的全部内容,更多相关自定义内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复