Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/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
为什么taefik不能代理kubernetes吊舱服务_Kubernetes_Traefik Ingress - Fatal编程技术网

为什么taefik不能代理kubernetes吊舱服务

为什么taefik不能代理kubernetes吊舱服务,kubernetes,traefik-ingress,Kubernetes,Traefik Ingress,我想使用taefikv2.0将服务代理到kubernetesv1.15.2集群pod中,这是我的taefik配置: apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: name: fat-api-route spec: entryPoints: - web routes: - match: Host(`k8s-fat-api.example.com`) kind: R

我想使用taefikv2.0将服务代理到kubernetesv1.15.2集群pod中,这是我的taefik配置:

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: fat-api-route
spec:
  entryPoints:
    - web
  routes:
    - match: Host(`k8s-fat-api.example.com`) 
      kind: Rule
      services:
        - name: soa-red-envelope-service
          port: 11005
我登录taefik management dashboard并发现以下错误:

the service "dabai-fat-fat-api-route-789d6ee4fcf7288b0f7f@kubernetescrd" does not exist

我确信soa红包服务pod开始成功,并在端口11005上侦听。当我将后端服务更改为eureka和eureka端口时,它工作正常。它表示配置正常,pod正常,现在问题可能出在哪里?

您没有一个名为soa红包服务的kubernetes服务指向后端pod,或者您有该服务,但不在创建入口路由的命名空间中