Merge pull request #306 from porridge/services-selector
Correct "kubectl get services" output.
This commit is contained in:
+4
-4
@@ -220,16 +220,16 @@ To find the ip addresses associated with the service run:
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl get services hello-node
|
$ kubectl get services hello-node
|
||||||
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
|
NAME CLUSTER_IP EXTERNAL_IP PORT(S) AGE
|
||||||
hello-node 10.3.246.12 8080/TCP run=hello-node 23s
|
hello-node 10.3.246.12 8080/TCP 23s
|
||||||
```
|
```
|
||||||
|
|
||||||
The `EXTERNAL_IP` may take several minutes to become available and visible. If the `EXTERNAL_IP` is missing, wait a few minutes and try again.
|
The `EXTERNAL_IP` may take several minutes to become available and visible. If the `EXTERNAL_IP` is missing, wait a few minutes and try again.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl get services hello-node
|
$ kubectl get services hello-node
|
||||||
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
|
NAME CLUSTER_IP EXTERNAL_IP PORT(S) AGE
|
||||||
hello-node 10.3.246.12 23.251.159.72 8080/TCP run=hello-node 2m
|
hello-node 10.3.246.12 23.251.159.72 8080/TCP 2m
|
||||||
```
|
```
|
||||||
|
|
||||||
Note there are 2 IP addresses listed, both serving port 8080. `CLUSTER_IP` is only visible inside your cloud virtual network. `EXTERNAL_IP` is externally accessible. In this example, the external IP address is 23.251.159.72.
|
Note there are 2 IP addresses listed, both serving port 8080. `CLUSTER_IP` is only visible inside your cloud virtual network. `EXTERNAL_IP` is externally accessible. In this example, the external IP address is 23.251.159.72.
|
||||||
|
|||||||
Reference in New Issue
Block a user