Skip to content

Instantly share code, notes, and snippets.

@mwmitchell
Created March 23, 2021 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwmitchell/f9ebbc770e23c9a2f624e24b8f36caa6 to your computer and use it in GitHub Desktop.
Save mwmitchell/f9ebbc770e23c9a2f624e24b8f36caa6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
kubectl get pods | grep bookkeeper | cut -d" " -f1 | xargs -I {} sh -c 'echo "instance: {}" && kubectl exec -ti {} -- df -h | grep bookkeeper'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment