Skip to content

Commit 894a841

Browse files
Update expose command in expose-intro.md (#50570)
* Update expose command in expose-intro.md Expose intro tutorial missing expose command #50418 * Update content/en/docs/tutorials/kubernetes-basics/expose/expose-intro.md Co-authored-by: Dipesh Rawat <[email protected]> * Update content/en/docs/tutorials/kubernetes-basics/expose/expose-intro.md Git it, thank you, Dipesh! Fixed. Co-authored-by: Dipesh Rawat <[email protected]> * Update expose-intro.md --------- Co-authored-by: Dipesh Rawat <[email protected]>
1 parent a77bb2d commit 894a841

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/en/docs/tutorials/kubernetes-basics/expose/expose-intro.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ Next, let’s list the current Services from our cluster:
104104
kubectl get services
105105
```
106106

107+
To expose the deployment to external traffic, we'll use the kubectl expose command with the --type=NodePort option:
108+
109+
```shell
110+
kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080
111+
```
112+
107113
We have now a running Service called kubernetes-bootcamp. Here we see that the Service
108114
received a unique cluster-IP, an internal port and an external-IP (the IP of the Node).
109115

0 commit comments

Comments
 (0)