From 1e585fa005571fcf05d7adbac4c1e3eaf0964a14 Mon Sep 17 00:00:00 2001 From: Philip Gough Date: Mon, 19 May 2025 16:34:30 +0100 Subject: [PATCH] Increase obs api read timeout for datahub --- magefiles/gateway.go | 1 + .../observatorium-api/production/observatorium-api-template.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/magefiles/gateway.go b/magefiles/gateway.go index 1b53636eab..50c6d340b9 100644 --- a/magefiles/gateway.go +++ b/magefiles/gateway.go @@ -209,6 +209,7 @@ func createObservatoriumAPIContainer(m TemplateMaps, namespace string) corev1.Co fmt.Sprintf("--metrics.alertmanager.endpoint=http://%s.%s.svc.cluster.local:9093", alertManagerName, namespace), "--rbac.config=/etc/observatorium/rbac.yaml", "--tenants.config=/etc/observatorium/tenants.yaml", + "--server.read-timeout=5m", }, Ports: []corev1.ContainerPort{ {Name: "grpc-public", ContainerPort: 8090}, diff --git a/resources/services/observatorium-api/production/observatorium-api-template.yaml b/resources/services/observatorium-api/production/observatorium-api-template.yaml index db939cc04c..d977d2e6cd 100755 --- a/resources/services/observatorium-api/production/observatorium-api-template.yaml +++ b/resources/services/observatorium-api/production/observatorium-api-template.yaml @@ -399,6 +399,7 @@ objects: - --metrics.alertmanager.endpoint=http://alertmanager.rhobs-production.svc.cluster.local:9093 - --rbac.config=/etc/observatorium/rbac.yaml - --tenants.config=/etc/observatorium/tenants.yaml + - --server.read-timeout=5m image: quay.io/redhat-user-workloads/rhobs-mco-tenant/observatorium-api:9aada65247a07782465beb500323a0e18d7e3d05 livenessProbe: failureThreshold: 10