Skip to content

ksail workload watch

Watch a directory for file changes and automatically apply workloads.
When files in the watched directory are created, modified, or deleted,
the command debounces changes (~500ms) then runs the equivalent of
'ksail workload apply -k <path>' to reconcile the cluster.
Each reconcile prints a timestamped status line showing the changed file
and the outcome (success or failure). Press Ctrl+C to stop the watcher.
Examples:
# Watch the default k8s/ directory
ksail workload watch
# Watch a custom directory
ksail workload watch --path=./manifests
Usage:
ksail workload watch [flags]
Flags:
--path string Directory to watch for changes (default: k8s/ or spec.workload.sourceDirectory from ksail.yaml)
Global Flags:
--benchmark Show per-activity benchmark output