Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kubectl get pods --all-namespaces -o=json | jq -c '.items[] | {name: .metadata.name, namespace: .metadata.namespace, claimName: .spec | select( has ("volumes") ).volumes[] | select( has ("persistentVolumeClaim") ).persistentVolumeClaim.claimName }'
Add Comment
Please, Sign In to add comment