mirror of
https://github.com/wassname/ray.git
synced 2026-10-01 12:31:37 +08:00
[Serve] fix k8s doc (#13713)
This commit is contained in:
1 parent
148b1022d6
commit
5d882b062d
1 file changed
+1
-1
@@ -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