Skip to content
SHC Docs

shc node maintenance

take a node out for a maintenance window

Cordon and announce it rebooting until now + --window, so the scheduler reschedules nothing from it while it is down inside the window. Past the window a node that has not returned is failed over like any lost node. With --drain its work is drained first.

The node’s return clears the announcement; the cordon stays until shc node maintenance <node> --end, which also lifts the cordon. A drained node stays drained: shc node uncordon returns it.

shc node maintenance <node> [flags]
--drain drain the node's work first
--end lift the maintenance: clear the announcement and uncordon
-h, --help help for maintenance
--window duration how long the node may be away, e.g. 30m
-y, --yes skip the drain confirmation prompt
--config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win
-d, --debug enable debug mode (default: $SHC_DEBUG)
-e, --environment string environment name (default: "prod", or "default" on an estate with no licence and no trial; $SHC_ENVIRONMENT and shc ctx -e override it, and the "master" tenant is always "default")
--exclude string comma-separated dotted paths to drop
--fields string comma-separated columns/keys to show (and their order)
--filter string comma-separated dotted paths to keep (drops everything else)
-o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT)
-s, --stack string stack name (default: $SHC_STACK)
-t, --tenant string tenant name (default: $SHC_TENANT)
-v, --verbose verbose output (default: $SHC_VERBOSE)
  • shc node - manage and inspect cluster nodes