-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update docs for release v0.4.0 #778
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5690fe9
update docs
9f1270b
Update docs/best-practice/worker-head-reconnection.md
scarlet25151 bf0bc4f
Update docs/best-practice/worker-head-reconnection.md
scarlet25151 b92c280
Update docs/design/protobuf-grpc-service.md
scarlet25151 fdff575
Update docs/design/protobuf-grpc-service.md
scarlet25151 12ba008
Update docs/design/protobuf-grpc-service.md
scarlet25151 9126605
remove dead codes and add roles in apiserver deployment
7ecfc88
Update apiserver/README.md
scarlet25151 c7ef443
Update apiserver/README.md
scarlet25151 b589902
Update apiserver/README.md
scarlet25151 f215e26
add explain for compute template
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# User Guide | ||
|
||
This guide documents the purpose and deployment of kuberay-apiserver. | ||
|
||
## Requirements | ||
|
||
| software | version | link | | ||
| :------- | :------: | ------------------------------------------------------------------: | | ||
| kubectl | v1.18.3+ | [download](https://kubernetes.io/docs/tasks/tools/install-kubectl/) | | ||
| go | v1.13+ | [download](https://golang.org/dl/) | | ||
| docker | 19.03+ | [download](https://docs.docker.com/install/) | | ||
|
||
## Purpose | ||
Lifecycle management of ray cluster may not be friendly for kubernetes nonexperts. | ||
Backend service is intended to provide a RESTful web service to manage ray cluster kubernetes resource. | ||
|
||
## Build and Deployment | ||
Backend service can be deployed locally, or in kubernetes cluster itself. The http service is listening on port 8888. | ||
|
||
### Pre-requisites | ||
admin kube config file is located at ~/.kube/config | ||
|
||
### Local Deployment | ||
#### Build | ||
``` | ||
go build -a -o raymgr cmd/main.go | ||
``` | ||
|
||
#### Start Service | ||
``` | ||
./raymgr | ||
``` | ||
#### Access | ||
localhost:8888 | ||
|
||
### Kubernetes Deployment | ||
#### Build | ||
``` | ||
./docker-image-builder.sh | ||
``` | ||
This script will build and optionally push the image to the remote docker hub (hub.byted.org). | ||
#### Start Service | ||
``` | ||
kubectl apply -f deploy/ | ||
``` | ||
#### Access | ||
To get port | ||
|
||
``` | ||
NODE_PORT=$(kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services backend-service -n ray-system) | ||
``` | ||
To get node | ||
``` | ||
NODE_IP=$(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="InternalIP")].address }') | ||
``` | ||
and pick any ip address | ||
|
||
Use NODE_IP:NODE_PORT to access |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,7 @@ rules: | |
resources: | ||
- rayclusters | ||
- rayjobs | ||
- rayservices | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do they need to be synchronized? If so, we can open an issue to add the RABC consistency between |
||
verbs: | ||
- create | ||
- delete | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DmitriGekhtman Is there any redundant field here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"port" and "node-ip-address" are unnecessary