Merge pull request #33243 from tengqm/tweak-portforward

Tweak indentation on portforward page
This commit is contained in:
Kubernetes Prow Robot
2022-05-28 07:26:51 -07:00
committed by GitHub
@@ -11,19 +11,11 @@ This page shows how to use `kubectl port-forward` to connect to a MongoDB
server running in a Kubernetes cluster. This type of connection can be useful server running in a Kubernetes cluster. This type of connection can be useful
for database debugging. for database debugging.
## {{% heading "prerequisites" %}} ## {{% heading "prerequisites" %}}
* {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} * {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
* Install [MongoDB Shell](https://www.mongodb.com/try/download/shell). * Install [MongoDB Shell](https://www.mongodb.com/try/download/shell).
<!-- steps --> <!-- steps -->
## Creating MongoDB deployment and service ## Creating MongoDB deployment and service
@@ -80,7 +72,6 @@ for database debugging.
mongo-75f59d57f4 1 1 1 3m12s mongo-75f59d57f4 1 1 1 3m12s
``` ```
2. Create a Service to expose MongoDB on the network: 2. Create a Service to expose MongoDB on the network:
```shell ```shell
@@ -119,7 +110,7 @@ for database debugging.
27017 27017
``` ```
(this is the TCP port allocated to MongoDB on the internet). 27017 is the TCP port allocated to MongoDB on the internet.
## Forward a local port to a port on the Pod ## Forward a local port to a port on the Pod
@@ -162,11 +153,9 @@ for database debugging.
Forwarding from [::1]:28015 -> 27017 Forwarding from [::1]:28015 -> 27017
``` ```
{{< note >}} {{< note >}}
`kubectl port-forward` does not return. To continue with the exercises, you will need to open another terminal.
`kubectl port-forward` does not return. To continue with the exercises, you will need to open another terminal. {{< /note >}}
{{< /note >}}
2. Start the MongoDB command line interface: 2. Start the MongoDB command line interface:
@@ -204,7 +193,6 @@ Forwarding from 127.0.0.1:63753 -> 27017
Forwarding from [::1]:63753 -> 27017 Forwarding from [::1]:63753 -> 27017
``` ```
<!-- discussion --> <!-- discussion -->
## Discussion ## Discussion
@@ -219,9 +207,7 @@ The support for UDP protocol is tracked in
[issue 47862](https://github.com/kubernetes/kubernetes/issues/47862). [issue 47862](https://github.com/kubernetes/kubernetes/issues/47862).
{{< /note >}} {{< /note >}}
## {{% heading "whatsnext" %}} ## {{% heading "whatsnext" %}}
Learn more about [kubectl port-forward](/docs/reference/generated/kubectl/kubectl-commands/#port-forward). Learn more about [kubectl port-forward](/docs/reference/generated/kubectl/kubectl-commands/#port-forward).