Skip to content

Commit fc91261

Browse files
loafoeclaude
andcommitted
feat(otlp-gateway): make VPA configurable and fix deprecated updateMode
- Change updateMode from deprecated "Auto" to "InPlaceOrRecreate" - Make VPA configurable via values (enabled by default) - Lower minAllowed (cpu: 10m, memory: 32Mi) to allow right-sizing - Increase maxAllowed (cpu: 1, memory: 4Gi) for headroom Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7d4755a commit fc91261

4 files changed

Lines changed: 28 additions & 8 deletions

File tree

charts/otlp-gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
22
name: otlp-gateway
3-
version: 0.50.0
3+
version: 0.51.0
44
description: A Helm chart for Kubernetes to deploy an OTLP gateway with authentication and authorization
55
type: application

charts/otlp-gateway/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# otlp-gateway
22

3-
![Version: 0.50.0](https://img.shields.io/badge/Version-0.50.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 0.51.0](https://img.shields.io/badge/Version-0.51.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
OTLP gateway is a reference implementation which creates a single otlphttp endpoint that proxies Loki, Tempo and Mimir OTLP endpoints
66
It supports authentication and authorization using both static and JWT tokens and tokens through the [caddy-token](https://github.com/loafoe/caddy-token) plugin.
@@ -114,6 +114,13 @@ authn:
114114
| topologySpreadConstraints.maxSkew | int | `1` | |
115115
| topologySpreadConstraints.whenUnsatisfiable | string | `"DoNotSchedule"` | |
116116
| useCustomFqdn | bool | `true` | |
117+
| vpa.enabled | bool | `true` | |
118+
| vpa.maxAllowed.cpu | int | `1` | |
119+
| vpa.maxAllowed.memory | string | `"4Gi"` | |
120+
| vpa.minAllowed.cpu | string | `"10m"` | |
121+
| vpa.minAllowed.memory | string | `"32Mi"` | |
122+
| vpa.minReplicas | int | `3` | |
123+
| vpa.updateMode | string | `"InPlaceOrRecreate"` | |
117124

118125
----------------------------------------------
119126
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.vpa.enabled }}
12
apiVersion: "autoscaling.k8s.io/v1"
23
kind: VerticalPodAutoscaler
34
metadata:
@@ -8,15 +9,16 @@ spec:
89
kind: Deployment
910
name: otlp-gateway
1011
updatePolicy:
11-
minReplicas: 3
12-
updateMode: Auto
12+
minReplicas: {{ .Values.vpa.minReplicas }}
13+
updateMode: {{ .Values.vpa.updateMode }}
1314
resourcePolicy:
1415
containerPolicies:
1516
- containerName: '*'
1617
minAllowed:
17-
cpu: 100m
18-
memory: 512Mi
18+
cpu: {{ .Values.vpa.minAllowed.cpu }}
19+
memory: {{ .Values.vpa.minAllowed.memory }}
1920
maxAllowed:
20-
cpu: 500m
21-
memory: 3Gi
21+
cpu: {{ .Values.vpa.maxAllowed.cpu }}
22+
memory: {{ .Values.vpa.maxAllowed.memory }}
2223
controlledResources: ["cpu","memory"]
24+
{{- end }}

charts/otlp-gateway/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,14 @@ ruler:
131131
enabled: true
132132
pathPrefix: /ruler
133133
service: mimir-ruler.mimir-system.svc.cluster.local:8080
134+
135+
vpa:
136+
enabled: true
137+
updateMode: InPlaceOrRecreate
138+
minReplicas: 3
139+
minAllowed:
140+
cpu: 10m
141+
memory: 32Mi
142+
maxAllowed:
143+
cpu: 1
144+
memory: 4Gi

0 commit comments

Comments
 (0)