Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
The most ugliest dynamic storage provider for kubernetes (installed by kismatic enterprise toolkit)
while true; do
kubectl get pvc --all-namespaces -o json | jq '.items[] | select(.metadata.annotations[""]=="auto-provision" and .status.phase=="Pending")' | jq -r '[,] | @csv' | sed s/\"//g | sed s/Gi//g | sed s/-pvc/-pv/ | awk -F ',' '{ print "./kismatic volume add " $2 " " $1 " -r 1 -d 2 -c=\"auto-provision\" -a 10.10.*.*"}' | sh
sleep 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.