fixit-701: correct expression to get externalIP

This commit is contained in:
runseb
2016-06-30 18:53:05 +02:00
parent f6aa550416
commit 2b77882112
+1 -1
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}' $ kubectl get pods --selector=app=cassandra rc -o 'jsonpath={.items[*].metadata.labels.version}'
# Get ExternalIPs of all nodes # 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 # List Names of Pods that belong to Particular RC
# "jq" command useful for transformations that are too complex for jsonpath # "jq" command useful for transformations that are too complex for jsonpath