-
Notifications
You must be signed in to change notification settings - Fork 666
add opentelemetry-ebpf-instrumentation helm chart #1704
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
Open
NimrodAvni78
wants to merge
15
commits into
open-telemetry:main
Choose a base branch
from
coralogix:otel-ebpf-instrumentation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,395
−2
Open
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
07fa796
add opentelemetry-ebpf-instrumentation helm chart
NimrodAvni78 726b3c7
remove k8s cache from helm
NimrodAvni78 f71d691
add k8s cache image
NimrodAvni78 f91fcfa
- Update the root README.md to include a reference to the new chart.
NimrodAvni78 cd5a327
fix kubernetes:enabled = true
NimrodAvni78 daea830
add maintainers
NimrodAvni78 884fd4f
add ci folder with default-values.yaml
NimrodAvni78 34e6580
renamed yaml files and examples.fresh to examples.default
NimrodAvni78 e42fe8e
add Prerequisites
NimrodAvni78 049dce1
remove global
NimrodAvni78 8ae443f
move configmap to helper template
NimrodAvni78 e39a935
fix examples
NimrodAvni78 ecc59c4
Merge branch 'main' into otel-ebpf-instrumentation
NimrodAvni78 124d373
Update charts/opentelemetry-ebpf-instrumentation/values.yaml
NimrodAvni78 4ce86e5
replace docker.io with ghcr.io
NimrodAvni78 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,17 @@ | ||||||||||||
--- | ||||||||||||
apiVersion: v2 | ||||||||||||
name: opentelemetry-ebpf-instrumentation | ||||||||||||
TylerHelmuth marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||
version: 0.1.0 | ||||||||||||
description: OpenTelemetry eBPF instrumentation Helm chart for Kubernetes | ||||||||||||
type: application | ||||||||||||
home: https://opentelemetry.io/ | ||||||||||||
sources: | ||||||||||||
- https://github.com/coralogix/opentelemetry-helm-charts | ||||||||||||
- https://github.com/open-telemetry/opentelemetry-helm-charts | ||||||||||||
icon: https://opentelemetry.io/img/logos/opentelemetry-logo-nav.png | ||||||||||||
maintainers: | ||||||||||||
- name: dmitryax | ||||||||||||
- name: jaronoff97 | ||||||||||||
- name: TylerHelmuth | ||||||||||||
- name: nimrodavni78 | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
appVersion: 0.1.0 |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a section detailing requirements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# OpenTelemetry Collector eBPF Helm Chart | ||
|
||
The helm chart installs [OpenTelemetry eBPF Instrumentation](https://github.com/open-telemetry/opentelemetry-ebpf-instrumentation) | ||
in kubernetes cluster. | ||
|
||
## Prerequisites | ||
|
||
- Kubernetes 1.24+ | ||
- Helm 3.9+ | ||
|
||
## Installing the Chart | ||
|
||
Add OpenTelemetry Helm repository: | ||
|
||
```console | ||
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts | ||
``` | ||
|
||
To install the chart with the release name my-opentelemetry-ebpf, run the following command: | ||
|
||
```console | ||
helm install my-opentelemetry-ebpf-instrumentation open-telemetry/opentelemetry-ebpf-instrumentation | ||
``` | ||
|
||
### Other configuration options | ||
|
||
The [values.yaml](./values.yaml) file contains information about all other configuration | ||
options for this chart. |
Empty file.
21 changes: 21 additions & 0 deletions
21
charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/clusterrole.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# Source: opentelemetry-ebpf-instrumentation/templates/clusterrole.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: example-opentelemetry-ebpf-instrumentation | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: rbac | ||
rules: | ||
- apiGroups: [ "apps" ] | ||
resources: [ "replicasets" ] | ||
verbs: [ "list", "watch" ] | ||
- apiGroups: [ "" ] | ||
resources: [ "pods", "services", "nodes" ] | ||
verbs: [ "list", "watch", "get" ] |
22 changes: 22 additions & 0 deletions
22
charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/clusterrolebinding.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
# Source: opentelemetry-ebpf-instrumentation/templates/clusterrolebinding.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: example-opentelemetry-ebpf-instrumentation | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: rbac | ||
subjects: | ||
- kind: ServiceAccount | ||
name: example-opentelemetry-ebpf-instrumentation | ||
namespace: default | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: example-opentelemetry-ebpf-instrumentation |
38 changes: 38 additions & 0 deletions
38
charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/configmap.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
# Source: opentelemetry-ebpf-instrumentation/templates/configmap.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: example-opentelemetry-ebpf-instrumentation | ||
namespace: default | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: config | ||
data: | ||
ebpf-instrument-config.yml: | | ||
attributes: | ||
kubernetes: | ||
enable: true | ||
discovery: | ||
exclude_services: | ||
- exe_path: .*ebpf-instrument.*|.*otelcol.* | ||
services: | ||
- k8s_namespace: . | ||
filter: | ||
network: | ||
k8s_dst_owner_name: | ||
not_match: '{kube*,*jaeger-agent*,*prometheus*,*promtail*,*grafana-agent*}' | ||
k8s_src_owner_name: | ||
not_match: '{kube*,*jaeger-agent*,*prometheus*,*promtail*,*grafana-agent*}' | ||
otel_metrics_export: | ||
endpoint: http://${HOST_IP}:4318 | ||
otel_traces_export: | ||
endpoint: http://${HOST_IP}:4317 | ||
prometheus_export: | ||
path: /metrics | ||
port: 9090 |
63 changes: 63 additions & 0 deletions
63
charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/daemonset.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
# Source: opentelemetry-ebpf-instrumentation/templates/daemonset.yaml | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: example-opentelemetry-ebpf-instrumentation | ||
namespace: default | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: workload | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation | ||
app.kubernetes.io/instance: example | ||
updateStrategy: | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
checksum/config: 2ddd12b5cac5f3eab28d8bc500cb3db81df076a39a5143c879aed1772dfdc4ee | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: workload | ||
spec: | ||
serviceAccountName: example-opentelemetry-ebpf-instrumentation | ||
hostPID: true | ||
initContainers: | ||
containers: | ||
- name: ebpf-instrument | ||
image: docker.io/otel/ebpf-instrument:main | ||
imagePullPolicy: IfNotPresent | ||
securityContext: | ||
privileged: true | ||
ports: | ||
- name: metrics | ||
containerPort: 9090 | ||
protocol: TCP | ||
env: | ||
- name: OTEL_EBPF_CONFIG_PATH | ||
value: "/etc/ebpf-instrument/config/ebpf-instrument-config.yml" | ||
- name: HOST_IP | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: status.hostIP | ||
volumeMounts: | ||
- mountPath: /etc/ebpf-instrument/config | ||
name: ebpf-instrument-config | ||
volumes: | ||
- name: ebpf-instrument-config | ||
configMap: | ||
name: example-opentelemetry-ebpf-instrumentation |
16 changes: 16 additions & 0 deletions
16
charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/serviceaccount.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
# Source: opentelemetry-ebpf-instrumentation/templates/serviceaccount.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: example-opentelemetry-ebpf-instrumentation | ||
namespace: default | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: rbac | ||
automountServiceAccountToken: true |
Empty file.
42 changes: 42 additions & 0 deletions
42
...opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/cache-deployment.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# Source: opentelemetry-ebpf-instrumentation/templates/cache-deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: opentelemetry-ebpf-instrumentation-k8s-cache | ||
namespace: default | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation-k8s-cache | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: workload | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation-k8s-cache | ||
template: | ||
metadata: | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation-k8s-cache | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
spec: | ||
serviceAccountName: example-opentelemetry-ebpf-instrumentation | ||
containers: | ||
- name: obi-k8s-cache | ||
image: docker.io/otel/opentelemetry-ebpf-k8s-cache:main | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 50055 | ||
protocol: TCP | ||
name: grpc | ||
env: | ||
- name: OTEL_EBPF_K8S_CACHE_PORT | ||
value: "50055" |
23 changes: 23 additions & 0 deletions
23
...ts/opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/cache-service.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
# Source: opentelemetry-ebpf-instrumentation/templates/cache-service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: opentelemetry-ebpf-instrumentation-k8s-cache | ||
namespace: default | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation-k8s-cache | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: networking | ||
spec: | ||
ports: | ||
- port: 50055 | ||
protocol: TCP | ||
targetPort: grpc | ||
name: grpc | ||
selector: | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation-k8s-cache |
21 changes: 21 additions & 0 deletions
21
charts/opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/clusterrole.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# Source: opentelemetry-ebpf-instrumentation/templates/clusterrole.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: example-opentelemetry-ebpf-instrumentation | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: rbac | ||
rules: | ||
- apiGroups: [ "apps" ] | ||
resources: [ "replicasets" ] | ||
verbs: [ "list", "watch" ] | ||
- apiGroups: [ "" ] | ||
resources: [ "pods", "services", "nodes" ] | ||
verbs: [ "list", "watch", "get" ] |
22 changes: 22 additions & 0 deletions
22
...entelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/clusterrolebinding.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
# Source: opentelemetry-ebpf-instrumentation/templates/clusterrolebinding.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: example-opentelemetry-ebpf-instrumentation | ||
labels: | ||
helm.sh/chart: opentelemetry-ebpf-instrumentation-0.1.0 | ||
app.kubernetes.io/name: opentelemetry-ebpf-instrumentation | ||
app.kubernetes.io/instance: example | ||
app.kubernetes.io/version: "0.1.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: obi | ||
app.kubernetes.io/component: rbac | ||
subjects: | ||
- kind: ServiceAccount | ||
name: example-opentelemetry-ebpf-instrumentation | ||
namespace: default | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: example-opentelemetry-ebpf-instrumentation |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the github workflows so that this chart is tested? chart-testing will do a default install if there is no
ci
folder