Create a route to use for AI queries in MicroShift
You can create a route so that your AI model can receive queries and give output by using the oc expose svc command or creating 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-predictorExample outputroute.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-demoExample outputNAME HOST ADMITTED SERVICE TLS ovms-resnet50-predictor ovms-resnet50-predictor-ai-demo.apps.example.com True ovms-resnet50-predictor