You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[feat][kubectl-plugin] support waiting for RayCluster to be provisioned
in the command `kubectl ray create cluster` with an optional flag `--wait` that
times out after a configurable duration that defaults to five minutes.
The RayCluster is provisioned when it has a status condition with
`type=RayClusterProvisioned` and `status=true` and falls back to checking if
its `.status.state` is `ready`. The command returns an error if the timeout is
reached.
The status condition checking behavior relies on ray-operator having its
feature gate `RayClusterStatusConditions=true` enabled.
Signed-off-by: David Xia <[email protected]>
cmd.Flags().StringVar(&options.workerMemory, "worker-memory", "4Gi", "amount of memory in each worker group replica")
84
84
cmd.Flags().StringVar(&options.workerGPU, "worker-gpu", "0", "number of GPUs in each worker group replica")
85
85
cmd.Flags().BoolVar(&options.dryRun, "dry-run", false, "print the generated YAML instead of creating the cluster")
86
+
cmd.Flags().BoolVar(&options.wait, "wait", false, "wait for the cluster to be provisioned before returning. Returns an error if the cluster is not provisioned by the timeout specified")
87
+
cmd.Flags().DurationVar(&options.timeout, "timeout", defaultProvisionedTimeout, "the timeout for --wait")
0 commit comments