tg-me.com/devops_star/361
Last Update:
Kubectl-foreach
Параллельное выполнение команд kubectl во всех/некоторых контекстах (аналогично GNU xargs+parallel).
Usage:
kubectl foreach [OPTIONS] [PATTERN]... -- [KUBECTL_ARGS...]
Patterns can be used to match context names from kubeconfig:
(empty): matches all contexts
NAME: matches context with exact name
/PATTERN/: matches context with regular expression
^NAME: remove context with exact name from the matched results
^/PATTERN/: remove contexts matching the regular expression from the results
Options:
-c=NUM Limit parallel executions (default: 0, unlimited)
-I=VAL Replace VAL occurring in KUBECTL_ARGS with context name
-q Disable and accept confirmation prompts ($KUBECTL_FOREACH_DISABLE_PROMPTS)
-h/--help Print help
https://github.com/ahmetb/kubectl-foreach
👉 @devops_star
BY DevOps Star (Звезда Девопса)

Share with your friend now:
tg-me.com/devops_star/361