Skip to content

Commit

Permalink
Helm chart: allow setting limits to beyla cache (#1335)
Browse files Browse the repository at this point in the history
* allow setting limits to beyla cache

* Fix pprof in beyla cache
  • Loading branch information
mariomac authored Nov 7, 2024
1 parent 2c89a9f commit 0fd215d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/beyla/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: beyla
version: 1.4.8
version: 1.4.9
appVersion: 1.8.6
description: eBPF-based autoinstrumentation HTTP, HTTP2 and gRPC services, as well as network metrics.
home: https://grafana.com/oss/beyla-ebpf/
Expand Down
4 changes: 4 additions & 0 deletions charts/beyla/templates/cache-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ spec:
containerPort: {{ .Values.k8sCache.profile_port }}
protocol: TCP
{{- end }}
{{- with .Values.k8sCache.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
env:
- name: BEYLA_K8S_CACHE_PORT
value: "{{ .Values.k8sCache.service.port }}"
Expand Down
11 changes: 11 additions & 0 deletions charts/beyla/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,17 @@ k8sCache:
# secretKeyRef:
# name: secret-name
# key: value_key
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
image:
# -- K8s Cache image registry (defaults to docker.io)
registry: "docker.io"
Expand Down
1 change: 1 addition & 0 deletions cmd/k8s-cache/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io"
"log/slog"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
"syscall"
Expand Down

0 comments on commit 0fd215d

Please sign in to comment.