-
Notifications
You must be signed in to change notification settings - Fork 402
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
Adding example of manually setting up NGINX Ingress #699
Conversation
Signed-off-by: Hsin-Yuan Chen <[email protected]>
Signed-off-by: Hsin-Yuan Chen <[email protected]>
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.
Thank @jasoonn for your contributions!
Signed-off-by: Hsin-Yuan Chen <[email protected]>
Signed-off-by: Hsin-Yuan Chen <[email protected]>
Signed-off-by: Hsin-Yuan Chen <[email protected]>
Signed-off-by: Hsin-Yuan Chen <[email protected]>
@kevin85421 Thanks for your suggestion. I have updated my pr. |
Co-authored-by: Dmitri Gekhtman <[email protected]> Signed-off-by: Hsin-Yuan Chen <[email protected]>
Co-authored-by: Dmitri Gekhtman <[email protected]> Signed-off-by: Hsin-Yuan Chen <[email protected]>
@DmitriGekhtman Thanks for the suggestion. I have updated my pr. |
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.
Thanks!!
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.
LGTM. Let's wait for CI to finish. Thank @jasoonn for this contribution!
This example provides users a starting point to customize their own ingress for ray clusters. ray-cluster.separate-ingress.yaml provides a template for setting up a ray cluster and the corresponding ingress, which clearly shows the relationship between ray cluster and ingress. Signed-off-by: Hsin-Yuan Chen <[email protected]> Co-authored-by: Ubuntu <azureuser@Ubuntu.pqxb1uggpgbehcpt4orv5untcb.rx.internal.cloudapp.net> Co-authored-by: Dmitri Gekhtman <[email protected]>
Why are these changes needed?
This example provides users a starting point to customize their own ingress for ray clusters. ray-cluster.separate-ingress.yaml provides a template for setting up a ray cluster and the corresponding ingress, which clearly shows the relationship between ray cluster and ingress.
Information helpful for modifying the ingress in ray-cluster.separate-ingress.yaml
spec.rules.http.paths.backend.service.name
should be the same as head servicespec.rules.http.paths.backend.service.port.number
should match the port specified for dashboard in the RayClustermetadata.annotations.nginx.ingress.kubernetes.io/rewrite-target: /$1
Any characters captured by (.*) will be assigned to the placeholder $1, which is then used as a parameter in the rewrite-target annotation(rewrite-target doc)
For example, the ingress definition above will result in the following rewrites:
$IP/$CLUSTER_NAME/
rewrites to$IP/
($1 maps to nothing)$IP/$CLUSTER_NAME/#/actors
rewrites to$IP/#/actors
($1 maps to #/actors)$IP/$CLUSTER_NAME/#/node
rewrites to$IP/#/node
($1 maps to #/node)Related issue number
#646
Demo
Step 1: Create kind cluster, for more reference can see in here.
Step 2: Install NGINX ingress controller
Step 3: Install KubeRay operator
Step 4: Install RayCluster and create an ingress separately.
Step 5: Check ingress created by Step 4.
Step 6: Check
<ip>/raycluster-ingress/
on the browser.Checks