kubernetes - 在 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>
解决方案
推荐阅读
- android - 如何将通知从一个设备发送到多个设备 Firebase?
- php - 尝试为 laravel 安装 vanilo 电子商务时,yarn install 抛出错误
- javascript - 如何在 HTML 中修复此错误(未显示错误)
- javascript - 表达 res.redirect 导致“Uncaught SyntaxError: Unexpected token <”
- c++ - 在函数中使用非静态值作为默认参数
- android - 如何通过音频焦点处理使 YouTube 视频静音并且不中断音乐播放?
- java - Rabbitmq java客户端消费者handleDelivery方法没有被调用
- django - 如何更改应用程序模型显示在 Django 管理界面下
- sql - 窗口函数和通过复杂的数据操作计算平均值
- c++ - 在 list merge() 中如何调用没有 '()' 比较函数?