Skip to content

Commit 60da5da

Browse files
authored
Merge pull request #45013 from mengjiao-liu/raw-html-data-in-tutorials
[zh] Fix raw HTML data in the tutorials page
2 parents 02dc977 + 1ff471e commit 60da5da

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

content/zh-cn/docs/tutorials/kubernetes-basics/scale/scale-intro.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ <h3>扩缩应用程序</h3>
5050

5151
<!--
5252
<p><em>Scaling</em> is accomplished by changing the number of replicas in a Deployment</p>
53-
<p> <b> NOTE </b> If you are trying this after <a href="/docs/tutorials/kubernetes-basics/expose/expose-intro/">the previous section </a>, you may need to start from <a href="/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro/">creating a cluster</a> as the services may have been deleted </p>
53+
<p>If you are trying this after <a href="/docs/tutorials/kubernetes-basics/expose/expose-intro/">the previous section</a>, you may have deleted the Service exposing the Deployment. In that case, please expose the Deployment again using the following command:</p><p><code><b>kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080</b></code></p>
5454
-->
5555
<p><b>扩缩</b> 是通过改变 Deployment 中的副本数量来实现的。</p>
56-
<p> <b> 注意 </b> 如果你是在 <a href="/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-intro/">上一节</a> 之后尝试此操作,
57-
你可能需要从 <a href="/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro/">创建一个集群</a> 开始,
58-
因为 Service 可能已被删除。</p>
59-
56+
{{< note >}}
57+
<p>如果你是在 <a href="/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-intro/">上一节</a> 之后尝试此操作,
58+
那么你可能已经删除了公开 Deployment 的 Service。在这种情况下,请使用以下命令再次公开 Deployment:</p>
59+
<p><code><b>kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080</b></code></p>
60+
{{< /note >}}
6061
</div>
6162
<div class="col-md-4">
6263
<div class="content__box content__box_lined">
@@ -269,23 +270,20 @@ <h3>负载均衡</h3>
269270
<p>We hit a different Pod with every request. This demonstrates that the load-balancing is working.</p>
270271
-->
271272
<p>我们每个请求都命中了不同的 Pod,这证明负载均衡正在工作。</p>
272-
{{< note >}}
273273
<!--
274-
<p>If you're running minikube with Docker Desktop as the container driver, a minikube tunnel is needed.
275-
This is because containers inside Docker Desktop are isolated from your host computer.<br>
274+
<p>If you're running minikube with Docker Desktop as the container driver, a minikube tunnel is needed. This is because containers inside Docker Desktop are isolated from your host computer.<br>
276275
<p>In a separate terminal window, execute:<br>
277276
<code><b>minikube service kubernetes-bootcamp --url</b></code></p>
277+
<p>The output looks like this:
278+
<pre><b>http://127.0.0.1:51082<br>! Because you are using a Docker driver on darwin, the terminal needs to be open to run it.</b></pre></p>
279+
<p>Then use the given URL to access the app:<br>
280+
<code><b>curl 127.0.0.1:51082</b></code></p>
278281
-->
282+
{{< note >}}
279283
<p>如果你使用 Docker Desktop 作为容器驱动程序运行 minikube,则需要 minikube 隧道。
280284
这是因为 Docker Desktop 内的容器与主机隔离。<br>
281285
<p>在单独的终端窗口中,执行:<br>
282286
<code><b>minikube service kubernetes-bootcamp --url</b></code></p>
283-
<!--
284-
<p>The output looks like this:
285-
<pre><b>http://127.0.0.1:51082<br>! Because you are using a Docker driver on darwin, the terminal needs to be open to run it.</b></pre></p>
286-
<p>Then use the given URL to access the app:<br>
287-
<code><b>curl 127.0.0.1:51082</b></code></p>
288-
-->
289287
<p>输出看起来像这样:
290288
<pre><b>http://127.0.0.1:51082<br>! Because you are using a Docker driver on darwin, the terminal needs to be open to run it.</b></pre></p>
291289
<p>然后使用给定的 URL 访问应用程序:

0 commit comments

Comments
 (0)