This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PROGNAME=$(basename $0) | |
function usage { | |
echo "usage: $PROGNAME [-n NAMESPACE] [-m MAX-PODS] -s SERVICE -- COMMAND" | |
echo " -s SERVICE K8s service, i.e. a pod selector (required)" | |
echo " COMMAND Command to execute on the pods" | |
echo " -n NAMESPACE K8s namespace (optional)" | |
echo " -m MAX-PODS Max number of pods to run on (optional; default=all)" |