Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart: allow setting limits to beyla cache #1335

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading