尝试使用 Istio 网关访问 OpenFaaS

问题描述

我试图通过包含网关和虚拟服务的 istio 访问 OpenFaaS。

我需要为 OpenFaaS 创建一个单独的端点,例如:"http://istio_ingress_Loadbalancer/openfaas" - 这应该给我 OpenFaaS UI。

任何人都可以帮助我,因为我很难访问它? 下面是我为网关和虚拟服务编写的代码。

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: openfaas-gateway
spec:
  selector:
    istio: ingressgateway
  servers:
  - port: 
      number: 80
      name: http
      protocol: HTTP
    hosts:
    - "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: openfaas-vs
spec:
  hosts:
  - "*"
  gateways:
  - openfaas-gateway.openfaas.svc.cluster.local
  http:
  - match:
    - uri:
        prefix: /openfaas
    route:
    - destination:
        host: gateway.openfaas.svc.cluster.local
        port:
            number: 8080

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)