5.5. 检查路由状态
在某些情况下,Route
对象有问题。您可以使用 OpenShift CLI (oc
)来检查其状态。
流程
运行以下命令,查看部署应用程序的
Route
对象的状态:oc get route <route_name> --output yaml
$ oc get route <route_name> --output yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将
<route_name
> 替换为Route
对象的名称。status
对象中的conditions
对象在失败时说明原因。