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

Applied BackendTrafficPolicy breaks HTTPRoute request timeout #4091

Closed
vladimirfx opened this issue Aug 21, 2024 · 0 comments · Fixed by #4095
Closed

Applied BackendTrafficPolicy breaks HTTPRoute request timeout #4091

vladimirfx opened this issue Aug 21, 2024 · 0 comments · Fixed by #4095
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@vladimirfx
Copy link

Description:

When any BackendTrafficPolicy is applied to HTTPRoute the route request timeout setting is ignored. And there is no way to set such timeout in BackendTrafficPolicy. Please suggest a workaround if any.

Repro steps:

Route:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: some-api
  labels:
    app.kubernetes.io/part-of: some-service
spec:
  parentRefs:
    - name: common
      namespace: gateway-system
  hostnames:
    - "some-api.example.com"
  rules:
    - backendRefs:
        - name: some-service
          namespace: some
          port: 8000
      timeouts:
        request: "130s"

Policy:

apiVersion: gateway.envoyproxy.io/v1alpha1
kind: BackendTrafficPolicy
metadata:
  name: conn-limit
spec:
  targetSelectors:
    - group: gateway.networking.k8s.io
      kind: HTTPRoute
      matchLabels:
        app.kubernetes.io/part-of: some-service
  circuitBreaker:
    maxConnections: 1

Request timeout (130s) is ignored and default (15s) is used instead.

Environment:

EG version 1.1.0

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