Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

5.6. 创建路由

OpenShift Container Platform 路由以主机名的形式公开服务,以便外部客户端可根据名称访问该服务。创建指向新应用程序的路由:

  1. ruby-ex开放服务:

    $ oc expose service ruby-ex
  2. 查看您的新路由:

    $ oc get route