Issue #14012 - Update source.md (#14174)

pull/14198/head
Supriya Sirbi 2019-05-07 10:17:40 +05:30 committed by Kubernetes Prow Robot
parent feb4dd578a
commit 2458d36751
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ $ kubectl expose deployment source-ip-app --name=nodeport --port=80 --target-por
service/nodeport exposed
$ NODEPORT=$(kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services nodeport)
$ NODES=$(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="ExternalIP")].address }')
$ NODES=$(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="IPAddress")].address }')
```
If you're running on a cloudprovider, you may need to open up a firewall-rule