Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kubernetes 在openshift路由中获取502坏网关_Kubernetes_Routes_Openshift_Okd - Fatal编程技术网

Kubernetes 在openshift路由中获取502坏网关

Kubernetes 在openshift路由中获取502坏网关,kubernetes,routes,openshift,okd,Kubernetes,Routes,Openshift,Okd,嗨,今天当我尝试使用route公开我的服务时,我得到了502坏网关…我的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公开我的服务时,我得到了502坏网关…我的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>
Name:hello world
名称空间:uvindu-k8soperator
标签:app=hello world
注释:openshift.io/host.generated:true
API版本:route.openshift.io/v1
种类:路线
元数据:
创建时间戳:2020-03-31T05:45:05Z
资源版本:15860504
自链接:/api/route.openshift.io/v1/namespace/uvindu-k8soperator/routes/hello-world
UID:c5e6e8cc-7312-11ea-b6ad-fa163e41f92e
规格:
主持人:hello-world-uvindu-k8soperator.apps.novalocal
端口:
目标端口:端口-9095
致:
种类:服务
姓名:你好,世界
体重:100
通配符策略:无
地位:
进入:
条件:
最后转换时间:2020-03-31T05:45:05Z
状态:正确
类型:入院
主持人:hello-world-uvindu-k8soperator.apps.novalocal
路由器名称:路由器
通配符策略:无
活动:

如果你进入pod并卷曲服务器url,它会响应吗?您的应用程序是否在pod中的localhost上响应?@ChrisBolton我遇到了相同的问题,应用程序使用服务url和端口正确响应,并且使用curl和route url遇到了相同的502错误。@uvindustri您解决了问题吗?如果您进入pod并curl服务器url,它是否响应?您的应用程序是否在pod中的localhost上响应?@ChrisBolton我遇到了相同的问题,应用程序使用服务url和端口正确响应,并且使用curl和route url遇到了相同的502错误。@uvindustri您解决了问题吗?