Skip to content

Commit

Permalink
Deployed 5adb9ae to v3.x with MkDocs 1.6.1 and mike 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
2lipan committed Nov 14, 2024
1 parent 819ebbb commit a5f5b14
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 12 deletions.
Binary file added v3.x/img/installation/在线升级.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions v3.x/installation/installation_k8s/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2628,11 +2628,12 @@ <h2 id="1-helm-chart">1 helm-chart 部署<a class="headerlink" href="#1-helm-cha
<div class="admonition ms-abstract">
<p class="admonition-title">配置说明</p>
<ul>
<li>【enabled】默认内置为 true,外置则改为 false</li>
<li>【host】具体的 IP 地址</li>
<li>【port】具体端口地址</li>
<li>【username】用户名</li>
<li>【password】密码</li>
<li>【StorageClass】默认是 defalut,根据需要修改为已有的 StorageClass 即可。</li>
<li>【enabled】默认内置为 true,外置则改为 false。</li>
<li>【host】具体的 IP 地址。</li>
<li>【port】具体端口地址。</li>
<li>【username】用户名。</li>
<li>【password】密码。</li>
</ul>
</div>
<div class="admonition ms-abstract">
Expand Down Expand Up @@ -2661,8 +2662,8 @@ <h2 id="1-helm-chart">1 helm-chart 部署<a class="headerlink" href="#1-helm-cha
<p><a class="glightbox" href="../../img/installation/k8s/%E5%8A%A0%E8%BD%BD%E7%A6%BB%E7%BA%BF%E9%95%9C%E5%83%8F.png" data-type="image" data-width="auto" data-height="auto" data-desc-position="bottom"><img alt="执行命令" src="../../img/installation/k8s/%E5%8A%A0%E8%BD%BD%E7%A6%BB%E7%BA%BF%E9%95%9C%E5%83%8F.png" width="900px" /></a></p>
<h2 id="2-helm-chart">2 helm-chart 升级<a class="headerlink" href="#2-helm-chart" title="Permanent link">&para;</a></h2>
<div class="admonition ms-abstract">
<p class="admonition-title">离线升级</p>
<p>下载新版本镜像导入环境、下载最新的离线 helm-chart 包,修改 values.yaml 配置文件,参考 <a href="./#3">离线安装</a>,执行更新命令即可。
<p class="admonition-title">升级步骤</p>
<p>下载新版本镜像导入环境、下载最新的离线 helm-chart 包,修改 values.yaml 配置文件,均可参考 <a href="./#1">离线安装</a>,执行更新命令即可。
<div class="highlight"><pre><span></span><code>helm upgrade metersphere metersphere3-3.4.0.tgz -f values.yml -n ms
</code></pre></div></p>
</div>
Expand Down
45 changes: 42 additions & 3 deletions v3.x/installation/online_installation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,16 @@ <h5 style="color: #000000">软件测试</h5>
<li class="md-nav__item">
<a href="#3" class="md-nav__link">
<span class="md-ellipsis">
3 配置反向代理
3 在线升级
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#4" class="md-nav__link">
<span class="md-ellipsis">
4 配置反向代理
</span>
</a>

Expand Down Expand Up @@ -2602,7 +2611,16 @@ <h5 style="color: #000000">软件测试</h5>
<li class="md-nav__item">
<a href="#3" class="md-nav__link">
<span class="md-ellipsis">
3 配置反向代理
3 在线升级
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#4" class="md-nav__link">
<span class="md-ellipsis">
4 配置反向代理
</span>
</a>

Expand Down Expand Up @@ -2651,7 +2669,28 @@ <h2 id="2">2 一键安装<a class="headerlink" href="#2" title="Permanent link">
</code></pre></div></p>
<p>安装脚本默认将主机的 ~/.metersphere/data 目录作为挂载目录,MeterSphere 的配置文件、数据及日志等均存放在该安装目录。</p>
</div>
<h2 id="3">3 配置反向代理<a class="headerlink" href="#3" title="Permanent link">&para;</a></h2>
<h2 id="3">3 在线升级<a class="headerlink" href="#3" title="Permanent link">&para;</a></h2>
<div class="admonition ms-abstract">
<p class="admonition-title">升级步骤</p>
<p>下载最新镜像:</p>
<div class="highlight"><pre><span></span><code>docker pull cr2.fit2cloud.com/metersphere/metersphere-ce-allinone
</code></pre></div>
<p>查看并确认安装时的数据持久化目录,复制保存,以便后续使用
<div class="highlight"><pre><span></span><code>docker inspect metersphere
</code></pre></div>
<a class="glightbox" href="../../img/installation/%E5%9C%A8%E7%BA%BF%E5%8D%87%E7%BA%A7.png" data-type="image" data-width="auto" data-height="auto" data-desc-position="bottom"><img alt="VirtualBox" src="../../img/installation/%E5%9C%A8%E7%BA%BF%E5%8D%87%E7%BA%A7.png" width="900px" /></a></p>
<p>删除正在运行的 metersphere 容器
<div class="highlight"><pre><span></span><code>docker rm -f metersphere
</code></pre></div></p>
<p><strong>注意</strong>: 务必确认数据持久化目录,否则启动后数据为空。</p>
<p>创建并启动 metersphere 容器
<div class="highlight"><pre><span></span><code>docker run -d -p 8081:8081 --name=metersphere -v ~/.metersphere/data:/opt/metersphere/data cr2.fit2cloud.com/metersphere/metersphere-ce-allinone
</code></pre></div></p>
<p>查看服务状态
<div class="highlight"><pre><span></span><code>docker ps -a|grep metersphere-ce-allinone
</code></pre></div></p>
</div>
<h2 id="4">4 配置反向代理<a class="headerlink" href="#4" title="Permanent link">&para;</a></h2>
<div class="admonition ms-abstract">
<p>如果使用了 Nginx、HAProxy 进行反向代理配置,需要增加对 websocket 的支持。以 Nginx 为例,参考配置如下:
<div class="highlight"><pre><span></span><code>server {
Expand Down
2 changes: 1 addition & 1 deletion v3.x/search/search_index.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"version": "v3.x", "title": "v3.x", "aliases": []}, {"version": "v2.x", "title": "v2.x", "aliases": ["latest", "LATEST"]}, {"version": "v1.20.x-lts", "title": "v1.20.x-lts", "aliases": ["LTS"]}]
[{"version": "v3.x", "title": "v3.x", "aliases": []}, {"version": "v2.x", "title": "v2.x", "aliases": ["LATEST", "latest"]}, {"version": "v1.20.x-lts", "title": "v1.20.x-lts", "aliases": ["LTS"]}]

0 comments on commit a5f5b14

Please sign in to comment.