mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-14 16:58:58 +03:00
VTWO-14496 : allow running scripts on a subset of the nodes
This commit is contained in:
@@ -16,10 +16,10 @@ vagrant up
|
||||
|
||||
- setup a container runtime
|
||||
```sh
|
||||
./scripts/run_script_on_all_nodes install_container_runtime
|
||||
./scripts/run_script_on_nodes install_container_runtime
|
||||
```
|
||||
|
||||
- download kubernetes
|
||||
```sh
|
||||
./scripts/run_script_on_all_nodes download_node_binaries
|
||||
./scripts/run_script_on_nodes download_node_binaries
|
||||
```
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
vagrant status --machine-readable | grep ,state, | cut -d, -f2 | sort | uniq
|
||||
vagrant status --machine-readable | grep ,state, | cut -d, -f2 | sort | uniq | grep "$1"
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
SCRIPTS_DIR=$(dirname $0)
|
||||
SCRIPT_NAME=$1
|
||||
NODE_NAMES=$($SCRIPTS_DIR/node_names)
|
||||
NODE_NAMES="$($SCRIPTS_DIR/node_names $2)"
|
||||
|
||||
cat $SCRIPTS_DIR/$SCRIPT_NAME
|
||||
|
||||
Reference in New Issue
Block a user