This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.5.3.8. expose
以外部方式公开服务作为路由。
示例:开放一个服务
oc expose service/parksmap-katacoda
$ oc expose service/parksmap-katacoda
示例:开放服务并指定主机名
oc expose service/parksmap-katacoda --hostname=www.my-host.com
$ oc expose service/parksmap-katacoda --hostname=www.my-host.com