自定义 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 Cattl...
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/latest2
URL
文章来源: fizzz.blog.csdn.net,作者:拿我格子衫来,版权归原作者所有,如需转载,请联系作者。
原文链接:fizzz.blog.csdn.net/article/details/106575767
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)