Created
June 24, 2020 12:47
-
-
Save boina-n/5fa1013f84ce4fc2aa1ed278eb16a99c to your computer and use it in GitHub Desktop.
Kubernetes Json filters memo
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
# Get label of each nodes: | |
oc get nodes -o=json | jq '.items[] | .metadata.name, .metadata.labels' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment