小编Yur*_*iyF的帖子

Ingress 不会在 OpenShift 4.11 中创建路由对象

我有关于 Openshift Ingress 的问题

根据本文档 https://docs.openshift.com/container-platform/4.7/networking/routes/route-configuration.html#nw-ingress-creating-a-route-via-an-ingress_route-configuration路由应该是自动创建到我的服务。我做了以下创建的新项目:

oc new-project test-ingress
Run Code Online (Sandbox Code Playgroud)

部署的虚拟应用程序:

oc new-app openshift/hello-openshift
Run Code Online (Sandbox Code Playgroud)

然后创建 Ingress 对象(这次没有 TLS):

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: hello-openshift
spec:
  rules:
  - host: hello-openshift.mycluster.example.com
    http:
      paths:
      - backend:
          # Forward to a Service called 'hello-openshift'
          service:
            name: hello-openshift
            port:
              number: 8080
        path: /
        pathType: Exact
Run Code Online (Sandbox Code Playgroud)

根据文档,我应该看到自动创建的服务路由。但路线没有创建。IBM Cloud 中的 Openshift 集群 v4.11。有人有同样的问题吗?

注意:在较旧的 Openshift 集群 v4.10 云上也存在同样的问题。但是当我从 更改为pathType: Exact-pathType: Prefix路线已生成。这不适用于 Openshift 集群 v4.11。有什么建议么?也许应该做一些我不知道的 Ingress 配置?

routes openshift

2
推荐指数
1
解决办法
2057
查看次数

标签 统计

openshift ×1

routes ×1