From 852c8b46326da6aabcd00fbd08edabfa878b83a6 Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Fri, 10 May 2024 13:19:20 +0100 Subject: [PATCH] add compression middleware --- kubernetes/loculus/templates/ingressroute.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kubernetes/loculus/templates/ingressroute.yaml b/kubernetes/loculus/templates/ingressroute.yaml index 00175f7dd..509636415 100644 --- a/kubernetes/loculus/templates/ingressroute.yaml +++ b/kubernetes/loculus/templates/ingressroute.yaml @@ -1,3 +1,10 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: Middleware +metadata: + name: compression-middleware +spec: + compress: {} +--- {{- if eq $.Values.environment "server" }} {{- $backendHost := printf "backend-%s" .Values.host }} {{- $keycloakHost := printf "authentication-%s" .Values.host }} @@ -6,6 +13,8 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: loculus-website-ingress + annotations: + traefik.ingress.kubernetes.io/router.middlewares: compression-middleware@kubernetescrd spec: rules: - host: "{{ .Values.host }}"