Merge pull request #23672 from bebyx/patch-1
Add important note about expose port
This commit is contained in:
@@ -136,6 +136,9 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
|
|||||||
|
|
||||||
The `--type=LoadBalancer` flag indicates that you want to expose your Service
|
The `--type=LoadBalancer` flag indicates that you want to expose your Service
|
||||||
outside of the cluster.
|
outside of the cluster.
|
||||||
|
|
||||||
|
The application code inside the image `k8s.gcr.io/echoserver` only listens on TCP port 8080. If you used
|
||||||
|
`kubectl expose` to expose a different port, clients could not connect to that other port.
|
||||||
|
|
||||||
2. View the Service you just created:
|
2. View the Service you just created:
|
||||||
|
|
||||||
@@ -283,4 +286,3 @@ minikube delete
|
|||||||
* Learn more about [Deploying applications](/docs/tasks/run-application/run-stateless-application-deployment/).
|
* Learn more about [Deploying applications](/docs/tasks/run-application/run-stateless-application-deployment/).
|
||||||
* Learn more about [Service objects](/docs/concepts/services-networking/service/).
|
* Learn more about [Service objects](/docs/concepts/services-networking/service/).
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user