Tweak indentation on portforward page
This PR fixes the indentation nits in the `port-forward-access-application-cluster` page. We are not supposed to indent lines by 4 spaces because such indentations may mislead the markdown parser to render them as code snippets.
This commit is contained in:
+2
-16
@@ -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
|
||||||
|
|
||||||
@@ -163,9 +154,7 @@ for database debugging.
|
|||||||
```
|
```
|
||||||
|
|
||||||
{{< 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).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user