Skip to content

Commit

Permalink
Merge pull request #1851 from DSD-DBS/timeout-requests
Browse files Browse the repository at this point in the history
feat: Let session proxy handle timeouts
  • Loading branch information
MoritzWeber0 authored Sep 30, 2024
2 parents a236bcf + 5667b26 commit 244d3a4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 10 deletions.
10 changes: 0 additions & 10 deletions helm/templates/routing/routing.ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ metadata:
nginx.ingress.kubernetes.io/fastcgi_buffer_size: 16k
nginx.ingress.kubernetes.io/fastcgi_buffers: 16 16k
nginx.ingress.kubernetes.io/fastcgi_busy_buffers_size: 16k
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-buffer-size: 16k
nginx.ingress.kubernetes.io/proxy-buffering: "off"
nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
nginx.ingress.kubernetes.io/proxy-request-buffering: "off"
{{- if eq .Values.cluster.kind "OpenShift" }}
route.openshift.io/insecureEdgeTerminationPolicy: Redirect
route.openshift.io/termination: edge
Expand Down Expand Up @@ -74,13 +71,6 @@ spec:
name: {{ .Release.Name }}-grafana-nginx
port:
name: grafui
- path: /session
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-session-nginx
port:
name: http
{{ if .Values.mocks.oauth }}
- path: /default
pathType: Prefix
Expand Down
36 changes: 36 additions & 0 deletions helm/templates/routing/sessions.ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-nginx-sessions
labels:
id: {{ .Release.Name }}-nginx-sessions
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-buffering: "off"
nginx.ingress.kubernetes.io/proxy-read-timeout: '70'
nginx.ingress.kubernetes.io/proxy-connect-timeout: '70'
nginx.ingress.kubernetes.io/proxy-send-timeout: '70'
nginx.ingress.kubernetes.io/proxy-request-buffering: "off"
{{- if eq .Values.cluster.kind "OpenShift" }}
route.openshift.io/insecureEdgeTerminationPolicy: Redirect
route.openshift.io/termination: edge
haproxy.router.openshift.io/timeout: 70s
{{ end }}
spec:
ingressClassName: {{ .Values.cluster.ingressClassName }}
rules:
- http:
paths:
- path: /session
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-session-nginx
port:
name: http
{{ if not .Values.general.wildcardHost }}
host: {{ .Values.general.host }}
{{ end }}

0 comments on commit 244d3a4

Please sign in to comment.