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: