Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
drawing opened this issue Aug 7, 2023 · 1 comment · Fixed by #97
Closed

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

drawing opened this issue Aug 7, 2023 · 1 comment · Fixed by #97
Assignees
Labels
bug Something isn't working
Milestone

Comments

@drawing
Copy link
Collaborator

drawing commented Aug 7, 2023

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'
@lianglli lianglli added the bug Something isn't working label Aug 7, 2023
@lianglli lianglli added this to the 1.0.1 milestone Aug 7, 2023
@lianglli lianglli self-assigned this Aug 7, 2023
@lianglli
Copy link
Member

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

问题前置条件:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants