[kubectl-plugin] Add kubectl ray create cluster#2607
[kubectl-plugin] Add kubectl ray create cluster#2607andrewsykim merged 1 commit intoray-project:masterfrom
Conversation
|
Going to post Screenshot of manual test soon. |
| kubectl ray create cluster -f raycluster-stample.yaml | ||
|
|
||
| # Creates Ray Cluster from flags input | ||
| kubectl ray create cluster sample-cluster --ray-version 2.9.0 --image rayproject/ray:2.9.0 --head-cpu 1 head-memory 5Gi --worker-grp-name worker-group1 --worker-replicas 3 --worker-cpu 1 --worker-memory 5Gi |
There was a problem hiding this comment.
Should we add a --dry-run or -o yaml option to print the generated YAML from this command?
There was a problem hiding this comment.
Ah, I see from the implementation that we're already printing the generated YAML
There was a problem hiding this comment.
would having --dry-run be a better option than just printing out the yaml and waiting for user input?
There was a problem hiding this comment.
would having --dry-run be a better option than just printing out the yaml and waiting for user input?
Yeah maybe -- by default the output should just be "Created Ray cluster ...." and --dry-run can output the YAML? Not sure we need to print the YAML every time
There was a problem hiding this comment.
I've added a --dry-run flag that will print out the yaml if its set and will just apply the yaml if unset.
3a13d4b to
7cd01b2
Compare
7cd01b2 to
8b9e893
Compare
MortalHappiness
left a comment
There was a problem hiding this comment.
BTW, we can try using RayClusterApplyConfiguration if importing that package doesn't result in a dependency conflict. It might be simpler than the current implementation of generating YAML files.
006150a to
0a4815a
Compare
2d73a55 to
274c03d
Compare
@MortalHappiness @andrewsykim I was able to use |
274c03d to
7bec5a9
Compare
7bec5a9 to
557252d
Compare
557252d to
54a77e2
Compare
54a77e2 to
7e1032e
Compare
Head branch was pushed to by a user without write access
7e1032e to
7f8e8a0
Compare
|
@MortalHappiness can you do another review? |


Why are these changes needed?
Adds
kubectl ray create clustercommand.Related issue number
Checks