Merge pull request #44752 from adityasamant25/issue-44749

Add the command exposing the Deployment in the tutorial for scaling an application
pull/44766/head
Kubernetes Prow Robot 2024-01-16 12:25:29 +01:00 committed by GitHub
commit 648d60b29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -128,7 +128,7 @@ description: |-
<div class="row">
<div class="col-md-12">
<h3>Using labels</h3>
<h3>Step 2: Using labels</h3>
<div class="content">
<p>The Deployment created automatically a label for our Pod. With the <code>describe deployment</code> subcommand you can see the name (the <em>key</em>) of that label:</p>
<p><code><b>kubectl describe deployment</b></code></p>

View File

@ -31,7 +31,9 @@ description: |-
<p>If you haven't worked through the earlier sections, start from <a href="/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro/">Using minikube to create a cluster</a>.</p>
<p><em>Scaling</em> is accomplished by changing the number of replicas in a Deployment</p>
<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>
{{< note >}}
<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>
{{< /note >}}
</div>
<div class="col-md-4">
<div class="content__box content__box_lined">