Skip to content

Commit

Permalink
Add example snippets for subdomain routing
Browse files Browse the repository at this point in the history
  • Loading branch information
agrski committed Dec 11, 2022
1 parent 03cad08 commit 94f6a85
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/source/contents/inference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,16 @@ Be sure to check the documentation for how to set this with your preferred tools
````{tab} Subdomains
Like virtual host names, subdomain names constitute a part of the overall host name.
As such, specifying a subdomain name for requests will involve setting the appropriate host via the URI or headers.
Subdomain names constitute a part of the overall host name.
As such, specifying a subdomain name for requests will involve setting the appropriate host in the URI.
For example, you may expose inference services in the namespaces `seldon-1` and `seldon-2` with the following, full-qualified domain names: `seldon-1.example.com` and `seldon-2.example.com`.
For example, you may expose inference services in the namespaces `seldon-1` and `seldon-2` as in the following snippets:
```
curl https://seldon-1.example.com/v2/models/iris/infer ...
seldon model infer --inference-host https://seldon-2.example.com/v2/models/iris/infer ...
```
Many popular ingresses support subdomain-based routing, including Istio and Nginx.
Please refer to the documentation for your ingress of choice for further information.
Expand Down

0 comments on commit 94f6a85

Please sign in to comment.