Merge pull request #763 from skippbox/fixit-701

fixit-701: correct expression to get externalIP
This commit is contained in:
johndmulhausen 2016-06-30 15:37:52 -07:00 committed by GitHub
commit 8e4631af2e
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ $ kubectl get pods --sort-by=.status.containerStatuses[0].restartCount
$ kubectl get pods --selector=app=cassandra rc -o 'jsonpath={.items[*].metadata.labels.version}'
# Get ExternalIPs of all nodes
$ kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=ExternalIP)].address}'
$ kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="ExternalIP")].address}'
# List Names of Pods that belong to Particular RC
# "jq" command useful for transformations that are too complex for jsonpath