mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Update enos/modules/drain_nodes/scripts/drain.sh
Co-authored-by: Tim Gross <tgross@hashicorp.com>
This commit is contained in:
committed by
GitHub
parent
0239e0e915
commit
9574a0d319
@@ -14,7 +14,7 @@ DRAIN_DEADLINE="5s"
|
||||
nodes=$(nomad node status -json | jq -r "[.[] | select(.Status == \"ready\") | .ID] | sort | .[:${NODES_TO_DRAIN}] | join(\" \")" )
|
||||
|
||||
for node in $nodes; do
|
||||
echo "Drainning the node $node"
|
||||
echo "Draining the node $node"
|
||||
|
||||
nomad node drain --enable --deadline "$DRAIN_DEADLINE" "$node" \
|
||||
|| error_exit "Failed to drain node $node"
|
||||
|
||||
Reference in New Issue
Block a user