Skip to content

Instantly share code, notes, and snippets.

View vegassor's full-sized avatar
💭
But honestly, I don't trust anyone anymore and I'm not waiting for anything.

Nikolay Zverochkin vegassor

💭
But honestly, I don't trust anyone anymore and I'm not waiting for anything.
View GitHub Profile
@redmcg
redmcg / kubedf
Last active June 14, 2024 19:51
Bash script to show k8s PVC usage
#!/usr/bin/env bash
NODESAPI=/api/v1/nodes
function getNodes() {
kubectl get --raw $NODESAPI | jq -r '.items[].metadata.name'
}
function getPVCs() {
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\