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
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,13 @@ You can then access the pod on `localhost:8080`.
35
35
Port forwarding is a network address translation that redirects Internet packets from one IP address
36
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 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.
38
+
The `port-forward` command in Kubernetes forwards incoming traffic to the machine, the command is
39
+
executed on, to the specified `IP:PORT` pairs inside the Kubernetes cluster. This effectively
40
+
lets traffic from outside the cluster reach applications running inside the cluster.
41
+
`kubectl port-forward` allows you to forward traffic to pods, services, deployments, and others.
41
42
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
+
More information can be found in the Kubernetes docs at
44
+
[Use Port Forwarding to Access Applications in a Cluster](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/)
43
45
44
46
</details>
45
47
@@ -78,7 +80,7 @@ The pod is defined in the `frontend-pod.yaml` file.
78
80
79
81
</details>
80
82
81
-
-Check that the pod is running with the `kubectl get pods` command.
83
+
-Use the `kubectl get pods` command to verify that the pod is running.
Copy file name to clipboardExpand all lines: services.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ between them.
13
13
14
14
## Service Discovery & Services
15
15
16
-
One of the features of Kubernetes is that we do not have to care which machine our pods are
16
+
One of the features of Kubernetes is that we do not have to know which machine our pods are
17
17
running on. This does create an interesting problem for us - if we don't know where (the IP address)
18
18
the pod is, how can we route traffic to it? This is solved by what is called **service discovery**,
19
19
as the words imply, Kubernetes will look for your pods and dynamically route traffic to them.
@@ -32,9 +32,9 @@ the rest!
32
32
The `service` then routes traffic to the pods that it selects. You can think of `service` as a kind of
33
33
proxy - you route traffic to the service, and the service routes the traffic to your pods.
34
34
35
-
While the `service` gets a static IP address, we prefer not to use it, because Kubernetes
36
-
runs its own DNS server in the cluster network, and every time we create a `service`, a DNS record is
37
-
created that points to the `service` IP address.
35
+
While the `service` gets a static IP address, we prefer not to use it. Kubernetes
36
+
runs its own DNS server in the cluster network, and every time we create a `service`,
37
+
a DNS record that points to the `service` IP address is automatically created.
38
38
The DNS record is always the `name` of the service, and can be referenced either from the same
39
39
namespace by using the name or from a different namespace by using the long form:
40
40
`<name>.<namespace>.svc.cluster.local`.
@@ -161,7 +161,7 @@ internet, but we can still access it from within the cluster using its `CLUSTER-
161
161
- No matter what type of service you choose while _exposing_ your pod, Cluster-IP is always
162
162
assigned to that particular service.
163
163
164
-
- Every service has endpoints, which point to the actual pod serving as the backend of a particular
164
+
- Every service has end-points, which point to the actual pod serving as the backend of a particular
165
165
service.
166
166
167
167
- As soon as a service is created and is assigned a Cluster-IP, an entry is made in Kubernetes'
@@ -186,7 +186,8 @@ service from the internet.
186
186
187
187
There are other types of services, like `LoadBalancer`, but we won't cover them in this exercise.
188
188
189
-
If you want to know more about Services, you can read more about them [Service types](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types).
189
+
If you want to know more about Services, you can read more about them in the Kubernetes docs for
0 commit comments