mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 17:49:47 +08:00
[Serve] fix k8s doc (#13713)
This commit is contained in:
@@ -225,7 +225,7 @@ With the cluster now running, we can run a simple script to start Ray Serve and
|
||||
# Connect to the running Ray cluster.
|
||||
ray.init(address="auto")
|
||||
# Bind on 0.0.0.0 to expose the HTTP server on external IPs.
|
||||
client = serve.start(http_options={"host": "0.0.0.0"})
|
||||
client = serve.start(detached=True, http_options={"host": "0.0.0.0"})
|
||||
|
||||
def hello():
|
||||
return "hello world"
|
||||
|
||||
Reference in New Issue
Block a user