oc expose - Expose a replicated application as a service or route
oc expose (svc/NAME | deploy/NAME) [--hostname=H] [--port=P] [--path=/p] [--name=N]
Options you will use
svc/NAME- creates a Route (http). For deploy/pod it creates a Service, like kubectl expose
--port- route.spec.port.targetPort: the pod port number or the service port name
--hostname- default: <route>-<project>.<apps domain>
Examples
$ oc expose svc/web$ oc create route edge web --service=webfor TLS use oc create route
Taught in
Try oc expose in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.