Rancher 个性化定制
<p>安装后,以管理员身份登录,导航到 <a href="https://server-url/v3/settings/hide-local-cluster">https://server-url/v3/settings/hide-local-cluster</a> 并将 hide-local-cluster 设置 从 false 更改为 true。重新加载浏览器。不再能够在UI中看到本地集群。
如图:
(1)图一
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/ebd5dce5ef57708395a7650fd9342977" alt="" />
(2)图二
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4c1b558ad9a647caadb6f6e6c593c450" alt="" /></p>
<p>例如:把下面这个环境做隐藏本地集群操作
1、先以管理员身份登录rancher。
再打开一个标签页,输入如下URL</p>
<pre><code class="language-bash">https://rancher.hzsun.com/v3/settings/hide-local-cluster</code></pre>
<p>页面如下:
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/2ec916b7eb1a927ec92adc1d977141a8" alt="" />
点 Edit 按钮,进入如下页面:
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/d33cff01f263649d4fab39288f0132d9" alt="" />
修改false为true,点 show Request 如下:
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/97fd2ec0d6807eedc70d111bd7ee0592" alt="" />
点 Send Request 后,关闭窗口,在上一级窗口中,重载窗体
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/c59619b0dd7952f5270baaf623af3755" alt="" />
验证是否不再显示本地集群。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/90ca6176380b929626872fa966045472" alt="" /></p>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/19de4aa6658e1dea49477419196968b7" alt="" /></p>
<p>要再次显示时,只要:</p>
<pre><code class="language-bash">导航到 https://server-url/v3/settings/hide-local-cluster 并将 hide-local-cluster 设置 从 true 改为 false 。</code></pre>
<p>来源:<a href="https://github.com/rancher/rancher/issues/29325">https://github.com/rancher/rancher/issues/29325</a></p>