alibaba/tengine-ingress

duplicate location "/robots.txt" when ingress has multipath

drawing opened this issue · 1 comments

when ingress config multipath and open tengine-reload, Ingress-Controller will generate locations where there are multiple robots.txt in the configuration.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: minimal-ingress
spec:
  rules:
  - host: echo.w1.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: echo-service
            port:
              number: 80
      - path: /abc
        pathType: Prefix
        backend:
          service:
            name: echo-service-2
            port:
              number: 80
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: tengine-ingress-configuration
  namespace: default
data:
  tengine-reload: 'true'
  tengine-static-service-cfg: 'true'

tengine-reload: 'true'
tengine-static-service-cfg: 'true'

问题前置条件:

  1. 配置更新,需要tengine reload;
  2. 使用静态配置文件。