You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh-cn/docs/tutorials/kubernetes-basics/scale/scale-intro.html
+12-14Lines changed: 12 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -50,13 +50,14 @@ <h3>扩缩应用程序</h3>
50
50
51
51
<!--
52
52
<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>
<p>We hit a different Pod with every request. This demonstrates that the load-balancing is working.</p>
270
271
-->
271
272
<p>我们每个请求都命中了不同的 Pod,这证明负载均衡正在工作。</p>
272
-
{{<note>}}
273
273
<!--
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>
276
275
<p>In a separate terminal window, execute:<br>
277
276
<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>
0 commit comments