rune scale

Change the desired replica count of a service.

rune scale <service-name> <replicas> [flags]

Examples

rune scale my-service 3
rune scale my-service 5 --namespace=production
rune scale my-service 10 --mode=gradual --step=2 --interval=1m
rune scale my-service 0 -d         # detach (fire-and-forget)

Flags

FlagDefaultNotes
-n, --namespacefrom contextService namespace.
--modeimmediateimmediate or gradual.
--step1Gradual mode — instances per step.
--interval30sGradual mode — time between steps.
--rollback-on-failtrueRevert to prior scale if health checks fail.
-d, --detachfalseDon't wait for rollout — fire-and-forget (CI-friendly).
--timeout5mRollout timeout (ignored with -d).
--api-serverfrom contextOne-off API server override.

Behavior

  • Setting <replicas> to 0 stops the service without deleting it. Same as rune stop.
  • Gradual scale aborts on health failure and rolls back (unless you disabled rollback).
  • The scale operation is idempotent — re-running with the same target is a no-op.

See also