Last active
October 2, 2018 05:46
-
-
Save georgegoh/f0076bb967181c288bf1278a7e371aec to your computer and use it in GitHub Desktop.
Print the details of the PVCs attached to the Elasticsearch pods in OpenShift's EFK stack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ES_VOLS=`oc get pvc -l logging-infra=support -n openshift-logging -o jsonpath='{range .items[*]}{.spec.volumeName}{"\n"}'` | |
| for pv in $ES_VOLS | |
| do | |
| oc get pv $pv -o jsonpath='{.spec.claimRef.name}{"\t"}{.spec.iscsi.portals}{"\t"}{.spec.iscsi.iqn}{"\n"}' | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample output: