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: accessing-your-application.md
+31-31Lines changed: 31 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@
10
10
11
11
Deploying a pod is not enough to make it accessible from outside the cluster.
12
12
13
-
In this exercise you will learn how to make temporary connections to a pod inside the cluster via
13
+
In this exercise, you will learn how to make temporary connections to a pod inside the cluster via
14
14
`kubectl port-forward`.
15
15
16
16
## Port-forward
17
17
18
18
The `kubectl port-forward` command allows you to forward one or more local ports to a pod. This can
19
-
be used to access a pod that is running in the cluster, using for example a web browser or a
19
+
be used to access a pod that is running in the cluster, using a web browser or a
20
20
command line tool like `curl`.
21
21
22
22
The command takes two arguments: the pod name and the port to forward. The port is specified as
@@ -32,14 +32,14 @@ You can then access the pod on `localhost:8080`.
32
32
<details>
33
33
<summary>:bulb: How does this port-forward work?</summary>
34
34
35
-
Port forwarding is a network address translation that redirects internet packets form one IP address
36
-
with specified port number to another `IP:PORT` set.
35
+
Port forwarding is a network address translation that redirects Internet packets from one IP address
36
+
to another with a specified port number to another `IP:PORT` set.
37
37
38
-
In Kubernetes `port-forward` creates a tunnel between your local machine and Kubernetes cluster on
39
-
the specified `IP:PORT` pairs in order to establish connection to the cluster.
40
-
`kubectl port-forward` allows you to forward not only pods but also services, deployments and other.
38
+
In Kubernetes `port-forward` creates a tunnel between your local machine and the Kubernetes cluster on
39
+
the specified `IP:PORT` pairs to establish a connection to the cluster.
40
+
`kubectl port-forward` allows you to forward not only pods but also services, deployments, and others.
41
41
42
-
More information can be found from [port-forward-access-application-cluste](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/)
42
+
More information can be found from [Use Port Forwarding to Access Applications in a Cluster](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/)
43
43
44
44
</details>
45
45
@@ -58,7 +58,7 @@ More information can be found from [port-forward-access-application-cluste](http
58
58
59
59
> :bulb: If you get stuck somewhere along the way, you can check the solution in the done folder.
60
60
61
-
### Step by step instructions
61
+
### Step-by-step instructions
62
62
63
63
<details>
64
64
<summary>
@@ -78,7 +78,7 @@ The pod is defined in the `frontend-pod.yaml` file.
78
78
79
79
</details>
80
80
81
-
- Check that the pod is running with `kubectl get pods` command.
81
+
- Check that the pod is running with the `kubectl get pods` command.
0 commit comments