[docs] [serve] Deployment as a service on k8s docs (#8663)

This commit is contained in:
Edward Oakes
2020-05-29 16:53:42 -05:00
committed by GitHub
parent 4955d14878
commit 5bec951ece
2 changed files with 134 additions and 2 deletions
@@ -68,7 +68,8 @@ class BoostingModel:
ray.init(address="auto")
# now we initialize /connect to the Ray service
serve.init()
# listen on 0.0.0.0 to make the HTTP server accessible from other machines.
serve.init(http_host="0.0.0.0")
serve.create_endpoint("iris_classifier", "/regressor")
serve.create_backend("lr:v1", BoostingModel)
serve.set_traffic("iris_classifier", {"lr:v1": 1, "version": "v1"})