1.10. Creating a route to use for AI queries in MicroShift


Create a route so that your AI model can receive queries and give output. You can either use the oc expose svc command or create a definition in a YAML file and apply it.

Prerequisites

  • You have root user access to your machine.
  • The OpenShift CLI (oc) is installed.

Procedure

  • Create a route using the following command:

    $ oc expose svc -n ai-demo ovms-resnet50-predictor

    Example output

    route.route.openshift.io/ovms-resnet50-predictor exposed

Verification

  • Verify that the route you created exists by running the following command:

    $ oc get route -n ai-demo

    Example output

    NAME                      HOST                                               ADMITTED   SERVICE                   TLS
    ovms-resnet50-predictor   ovms-resnet50-predictor-ai-demo.apps.example.com   True       ovms-resnet50-predictor

Additional resources

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る