@@ -55,8 +55,6 @@ kubectl expose deployment first-dep --type=LoadBalancer --port=8080
|
||||
|
||||
The `--type=LoadBalancer` flag indicates that you want to expose your Service 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.
|
||||
|
||||
View the Service you created:
|
||||
|
||||
```shell
|
||||
|
||||
Reference in New Issue
Block a user