首页 > 解决方案 > 在 openshift 路由中获取 502 bad gateway

问题描述

嗨,今天当我尝试使用路由公开我的服务时,我得到 502 bad gateway ...我的 openshift 集群版本是 3.11。我使用 oc expose my-service 来使用路由公开我的服务。我在下面描述了我的路线。

Name:         hello-world
Namespace:    uvindu-k8soperator
Labels:       app=hello-world
Annotations:  openshift.io/host.generated: true
API Version:  route.openshift.io/v1
Kind:         Route
Metadata:
  Creation Timestamp:  2020-03-31T05:45:05Z
  Resource Version:    15860504
  Self Link:           /apis/route.openshift.io/v1/namespaces/uvindu-k8soperator/routes/hello-world
  UID:                 c5e6e8cc-7312-11ea-b6ad-fa163e41f92e
Spec:
  Host:  hello-world-uvindu-k8soperator.apps.novalocal
  Port:
    Target Port:  port-9095
  To:
    Kind:           Service
    Name:           hello-world
    Weight:         100
  Wildcard Policy:  None
Status:
  Ingress:
    Conditions:
      Last Transition Time:  2020-03-31T05:45:05Z
      Status:                True
      Type:                  Admitted
    Host:                    hello-world-uvindu-k8soperator.apps.novalocal
    Router Name:             router
    Wildcard Policy:         None
Events:                      <none>

标签: kubernetesroutesopenshiftokd

解决方案


推荐阅读