Skip to content

Instantly share code, notes, and snippets.

View parogui's full-sized avatar

Pablo Rodriguez Guillamon parogui

  • Red Hat
View GitHub Profile
@parogui
parogui / kubedf
Last active March 28, 2022 13:38 — forked from redmcg/kubedf
Bash script to show k8s PVC usage
#!/usr/bin/env bash
NODESAPI=/api/v1/nodes
function getNodes() {
oc get --raw $NODESAPI | jq -r '.items[].metadata.name'
}
function getPVCs() {
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\