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 October 2, 2024 15:41
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")) | '\