From 954998c831e209f1606d69f419d6eb2f95297328 Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Fri, 28 Nov 2025 10:14:03 +0100 Subject: [PATCH] fix(base-cluster/tracing): use correct resources for tracing gateway --- .../templates/monitoring/alloy-gateway.yaml | 2 +- charts/base-cluster/values.schema.json | 18 +++++++++++++++++- charts/base-cluster/values.yaml | 2 ++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/charts/base-cluster/templates/monitoring/alloy-gateway.yaml b/charts/base-cluster/templates/monitoring/alloy-gateway.yaml index 1ad05ec303..8571eb2af3 100644 --- a/charts/base-cluster/templates/monitoring/alloy-gateway.yaml +++ b/charts/base-cluster/templates/monitoring/alloy-gateway.yaml @@ -31,7 +31,7 @@ spec: {{- end }} alloy: enableReporting: false - resources: {{- include "common.resources" .Values.monitoring.loki.promtail | nindent 8 }} + resources: {{- include "common.resources" .Values.monitoring.alloy.gateway | nindent 8 }} {{- if .Values.monitoring.loki.enabled }} mounts: varlog: true diff --git a/charts/base-cluster/values.schema.json b/charts/base-cluster/values.schema.json index fd31a073d6..6ae5d46ad8 100644 --- a/charts/base-cluster/values.schema.json +++ b/charts/base-cluster/values.schema.json @@ -925,7 +925,11 @@ "type": "string", "pattern": "[0-9]+(ms|s|m|h|d|w|y)", "description": "Loki log retention period (e.g., 45d, 7d, 24h)", - "examples": ["45d", "7d", "24h"] + "examples": [ + "45d", + "7d", + "24h" + ] }, "persistence": { "type": "object", @@ -956,6 +960,18 @@ }, "resources": { "$ref": "#/$defs/resourceRequirements" + }, + "gateway": { + "type": "object", + "properties": { + "resourcesPreset": { + "$ref": "#/$defs/resourcesPreset" + }, + "resources": { + "$ref": "#/$defs/resourceRequirements" + } + }, + "additionalProperties": false } }, "additionalProperties": false diff --git a/charts/base-cluster/values.yaml b/charts/base-cluster/values.yaml index 6cce0c1461..709f6aca30 100644 --- a/charts/base-cluster/values.yaml +++ b/charts/base-cluster/values.yaml @@ -334,6 +334,8 @@ monitoring: limits: cpu: 1 memory: 128Mi + gateway: + resourcesPreset: small metricsServer: enabled: true securityScanning: