Skip to content

Commit 17ffdd6

Browse files
authored
feat(helm): cache-only deployment (#2306)
1 parent 4dcd93b commit 17ffdd6

File tree

7 files changed

+45
-2
lines changed

7 files changed

+45
-2
lines changed

charts/beyla/Chart.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: beyla
3-
version: 1.9.9
3+
version: 1.10.0
44
appVersion: 2.7.5
55
description: eBPF-based autoinstrumentation HTTP, HTTP2 and gRPC services, as well as network metrics.
66
home: https://grafana.com/oss/beyla-ebpf/
@@ -21,3 +21,5 @@ maintainers:
2121
url: https://github.com/marctc
2222
- name: rafaelroquetto
2323
url: https://github.com/rafaelroquetto
24+
- name: skl
25+
url: https://github.com/skl

charts/beyla/README.md

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

3-
![Version: 1.8.0](https://img.shields.io/badge/Version-1.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.2.3](https://img.shields.io/badge/AppVersion-2.2.3-informational?style=flat-square)
3+
![Version: 1.10.0](https://img.shields.io/badge/Version-1.10.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.5](https://img.shields.io/badge/AppVersion-2.7.5-informational?style=flat-square)
44

55
eBPF-based autoinstrumentation HTTP, HTTP2 and gRPC services, as well as network metrics.
66

@@ -14,6 +14,7 @@ eBPF-based autoinstrumentation HTTP, HTTP2 and gRPC services, as well as network
1414
| grcevski | | <https://github.com/grcevski> |
1515
| marctc | | <https://github.com/marctc> |
1616
| rafaelroquetto | | <https://github.com/rafaelroquetto> |
17+
| skl | | <https://github.com/skl> |
1718

1819
## Source Code
1920

@@ -30,6 +31,7 @@ eBPF-based autoinstrumentation HTTP, HTTP2 and gRPC services, as well as network
3031
| config.skipConfigMapCheck | bool | `false` | set to true, to skip the check around the ConfigMap creation |
3132
| contextPropagation | object | `{"enabled":true}` | Enables context propagation support. |
3233
| dnsPolicy | string | `"ClusterFirstWithHostNet"` | Determines how DNS resolution is handled for that pod. If `.Values.preset` is set to `network` or `.Values.config.data.network` is enabled, Beyla requires `hostNetwork` access, causing cluster service DNS resolution to fail. It is recommended not to change this if Beyla sends traces and metrics to Grafana components via k8s service. |
34+
| enabled | bool | `true` | Whether to deploy the Beyla DaemonSet. Defaults to true. Set to false to deploy only the Kubernetes metadata cache. |
3335
| env | object | `{}` | extra environment variables |
3436
| envValueFrom | object | `{}` | extra environment variables to be set from resources such as k8s configMaps/secrets |
3537
| extraCapabilities | list | `[]` | Extra capabilities for unprivileged / less privileged setup. |

charts/beyla/templates/daemon-set.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.enabled }}
12
apiVersion: apps/v1
23
kind: DaemonSet
34
metadata:
@@ -149,3 +150,4 @@ spec:
149150
{{- with .Values.volumes }}
150151
{{- toYaml . | nindent 8 }}
151152
{{- end }}
153+
{{- end }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
apiVersion: helm-chart-toolbox.grafana.com/v1
3+
kind: TestPlan
4+
name: cache-only
5+
6+
subject:
7+
path: ../../..
8+
valuesFile: values.yaml
9+
10+
cluster:
11+
type: kind
12+
13+
tests:
14+
- type: kubernetes-objects-test
15+
values:
16+
checks:
17+
- kind: Deployment
18+
name: beyla-k8s-cache
19+
namespace: default
20+
- kind: Service
21+
name: beyla-k8s-cache
22+
namespace: default
23+
- kind: ConfigMap
24+
name: cache-only-beyla
25+
namespace: default
26+
checkAbsent:
27+
- kind: DaemonSet
28+
name: cache-only-beyla
29+
namespace: default
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
enabled: false
3+
k8sCache:
4+
replicas: 1

charts/beyla/tests/integration/default/test-plan.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
apiVersion: helm-chart-toolbox.grafana.com/v1
33
kind: TestPlan
44
name: defaults
5+
56
subject:
67
path: ../../..
78

charts/beyla/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ global:
77
# -- Optional set of global image pull secrets.
88
pullSecrets: []
99

10+
# -- Whether to deploy the Beyla DaemonSet. Defaults to true. Set to false to deploy only the Kubernetes metadata cache.
11+
enabled: true
12+
1013
image:
1114
# -- Beyla image registry (defaults to docker.io)
1215
registry: "docker.io"

0 commit comments

Comments
 (0)