From f8458c2ca73373c60dd2707296303dea1895d9ae Mon Sep 17 00:00:00 2001 From: Nicolas Takashi Date: Wed, 12 Jul 2023 16:46:41 +0100 Subject: [PATCH] [CHORE] adding ebpf collector Signed-off-by: Nicolas Takashi --- charts/opentelemetry-collector/Chart.yaml | 2 +- .../rendered/configmap-agent.yaml | 2 +- .../rendered/configmap.yaml | 2 +- .../rendered/daemonset.yaml | 4 +- .../rendered/deployment.yaml | 4 +- .../rendered/service.yaml | 2 +- .../rendered/serviceaccount.yaml | 2 +- .../rendered/configmap-agent.yaml | 2 +- .../rendered/daemonset.yaml | 4 +- .../rendered/serviceaccount.yaml | 2 +- .../rendered/configmap-agent.yaml | 2 +- .../rendered/daemonset.yaml | 4 +- .../rendered/serviceaccount.yaml | 2 +- .../rendered/configmap-agent.yaml | 2 +- .../daemonset-only/rendered/daemonset.yaml | 4 +- .../rendered/serviceaccount.yaml | 2 +- .../rendered/clusterrole.yaml | 2 +- .../rendered/clusterrolebinding.yaml | 2 +- .../rendered/configmap-agent.yaml | 2 +- .../daemonset-presets/rendered/daemonset.yaml | 4 +- .../rendered/serviceaccount.yaml | 2 +- .../rendered/configmap-agent.yaml | 2 +- .../daemonset-windows/rendered/daemonset.yaml | 4 +- .../rendered/serviceaccount.yaml | 2 +- .../deployment-only/rendered/configmap.yaml | 2 +- .../deployment-only/rendered/deployment.yaml | 4 +- .../deployment-only/rendered/service.yaml | 2 +- .../rendered/serviceaccount.yaml | 2 +- .../rendered/configmap.yaml | 2 +- .../rendered/deployment.yaml | 4 +- .../rendered/service.yaml | 2 +- .../rendered/serviceaccount.yaml | 2 +- .../rendered/deployment.yaml | 2 +- .../rendered/service.yaml | 2 +- .../rendered/serviceaccount.yaml | 2 +- .../rendered/clusterrole-targetallocator.yaml | 2 +- .../rendered/clusterrole.yaml | 2 +- .../clusterrolebinding-targetallocator.yaml | 2 +- .../rendered/clusterrolebinding.yaml | 2 +- .../rendered/opentelemetrycollector.yaml | 2 +- .../serviceaccount-targetallocator.yaml | 2 +- .../rendered/configmap-statefulset.yaml | 2 +- .../statefulset-only/rendered/service.yaml | 2 +- .../rendered/serviceaccount.yaml | 2 +- .../rendered/statefulset.yaml | 2 +- .../templates/network-explorer/_helpers.tpl | 82 ++++++ .../cloud-collector-deployment.yaml | 115 ++++++++ .../cloud-collector-serviceaccount.yaml | 12 + .../templates/network-explorer/configmap.yaml | 13 + .../k8s-collector-clusterrole.yaml | 25 ++ .../k8s-collector-clusterrolebinding.yaml | 16 ++ .../k8s-collector-deployment.yaml | 160 +++++++++++ .../k8s-collector-serviceaccount.yaml | 8 + .../kernel-collector-clusterrole.yaml | 17 ++ .../kernel-collector-clusterrolebinding.yaml | 16 ++ .../kernel-collector-daemonset.yaml | 199 +++++++++++++ .../kernel-collector-podsecuritypolicy.yaml | 38 +++ .../kernel-collector-serviceaccount.yaml | 8 + .../network-explorer/reducer-deployment.yaml | 115 ++++++++ .../network-explorer/reducer-service.yaml | 24 ++ .../values.schema.json | 150 ++++++++++ charts/opentelemetry-collector/values.yaml | 266 ++++++++++++++++++ charts/opentelemetry-ebpf/.helmignore | 23 ++ charts/opentelemetry-ebpf/CONTRIBUTING.md | 8 + charts/opentelemetry-ebpf/Chart.yaml | 15 + charts/opentelemetry-ebpf/README.md | 0 charts/opentelemetry-ebpf/values.schema.json | 0 charts/opentelemetry-ebpf/values.yaml | 0 68 files changed, 1364 insertions(+), 54 deletions(-) create mode 100644 charts/opentelemetry-collector/templates/network-explorer/_helpers.tpl create mode 100644 charts/opentelemetry-collector/templates/network-explorer/cloud-collector-deployment.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/cloud-collector-serviceaccount.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/configmap.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/k8s-collector-clusterrole.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/k8s-collector-clusterrolebinding.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/k8s-collector-deployment.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/k8s-collector-serviceaccount.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/kernel-collector-clusterrole.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/kernel-collector-clusterrolebinding.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/kernel-collector-daemonset.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/kernel-collector-podsecuritypolicy.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/kernel-collector-serviceaccount.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/reducer-deployment.yaml create mode 100644 charts/opentelemetry-collector/templates/network-explorer/reducer-service.yaml create mode 100644 charts/opentelemetry-ebpf/.helmignore create mode 100644 charts/opentelemetry-ebpf/CONTRIBUTING.md create mode 100644 charts/opentelemetry-ebpf/Chart.yaml create mode 100644 charts/opentelemetry-ebpf/README.md create mode 100644 charts/opentelemetry-ebpf/values.schema.json create mode 100644 charts/opentelemetry-ebpf/values.yaml diff --git a/charts/opentelemetry-collector/Chart.yaml b/charts/opentelemetry-collector/Chart.yaml index 65daf365d..7e94a7c7c 100644 --- a/charts/opentelemetry-collector/Chart.yaml +++ b/charts/opentelemetry-collector/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: opentelemetry-collector -version: 0.63.0 +version: 0.64.0 description: OpenTelemetry Collector Helm chart for Kubernetes type: application home: https://opentelemetry.io/ diff --git a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap-agent.yaml b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap-agent.yaml index 0d7570c6e..74162ff27 100644 --- a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap-agent.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap-agent.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap.yaml b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap.yaml index 2abfd8326..f57e7fe1c 100644 --- a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/daemonset.yaml b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/daemonset.yaml index 0641fab82..4c29ba735 100644 --- a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/daemonset.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/daemonset.yaml @@ -5,7 +5,7 @@ kind: DaemonSet metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" @@ -21,7 +21,7 @@ spec: template: metadata: annotations: - checksum/config: 13b1c0a193b017fccd42b05742048c8d43d07f5b4df2c70b9078bc3daef46b4b + checksum/config: 1c2f96696b75e08803f916977aeef1429bd1fb4f52fba9f3c85c4e40b8d2e251 labels: app.kubernetes.io/name: opentelemetry-collector diff --git a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/deployment.yaml b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/deployment.yaml index 7661b5a97..44c77c551 100644 --- a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/deployment.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/deployment.yaml @@ -5,7 +5,7 @@ kind: Deployment metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" @@ -23,7 +23,7 @@ spec: template: metadata: annotations: - checksum/config: a1e9d8f628b1ccdcbbfa0aa08e2b3c44fc2cce6c2a4f1fdc546d25a99f22efa2 + checksum/config: 9968b8e069b6d553624cfa9f1e1a70886a20e0535743c84cbf77a653432d4fc4 labels: app.kubernetes.io/name: opentelemetry-collector diff --git a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/service.yaml b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/service.yaml index ad0693054..8a719e7c5 100644 --- a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/service.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/service.yaml @@ -5,7 +5,7 @@ kind: Service metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/configmap-agent.yaml b/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/configmap-agent.yaml index e3f823701..6bdaf5553 100644 --- a/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/configmap-agent.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/configmap-agent.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/daemonset.yaml b/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/daemonset.yaml index 9e166c310..663729db9 100644 --- a/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/daemonset.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/daemonset.yaml @@ -5,7 +5,7 @@ kind: DaemonSet metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" @@ -21,7 +21,7 @@ spec: template: metadata: annotations: - checksum/config: 47a843b7fd1e7f8de1cb7e6aad6bfb5aa5f9123511c928241aa1a46d6a3b2ce0 + checksum/config: 3ce0c696231e9549c9d9f9e6ede3913fdeba1d216b0c6c69a68f8a1ddaef71d3 labels: app.kubernetes.io/name: opentelemetry-collector diff --git a/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/configmap-agent.yaml b/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/configmap-agent.yaml index c5da00377..6783ce853 100644 --- a/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/configmap-agent.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/configmap-agent.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/daemonset.yaml b/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/daemonset.yaml index 95fbef6d2..bc7ab9b20 100644 --- a/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/daemonset.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/daemonset.yaml @@ -5,7 +5,7 @@ kind: DaemonSet metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" @@ -21,7 +21,7 @@ spec: template: metadata: annotations: - checksum/config: 8257525211973c77e15c376416b8c693e536210f65bd4170993d042795e96004 + checksum/config: 50ffd41654a97e19552e9153856db645c6f180e8715358c9dcc268aaca58691e labels: app.kubernetes.io/name: opentelemetry-collector diff --git a/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-only/rendered/configmap-agent.yaml b/charts/opentelemetry-collector/examples/daemonset-only/rendered/configmap-agent.yaml index c5da00377..6783ce853 100644 --- a/charts/opentelemetry-collector/examples/daemonset-only/rendered/configmap-agent.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-only/rendered/configmap-agent.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-only/rendered/daemonset.yaml b/charts/opentelemetry-collector/examples/daemonset-only/rendered/daemonset.yaml index 0b0de0bdd..ef2ea5235 100644 --- a/charts/opentelemetry-collector/examples/daemonset-only/rendered/daemonset.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-only/rendered/daemonset.yaml @@ -5,7 +5,7 @@ kind: DaemonSet metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" @@ -21,7 +21,7 @@ spec: template: metadata: annotations: - checksum/config: 8257525211973c77e15c376416b8c693e536210f65bd4170993d042795e96004 + checksum/config: 50ffd41654a97e19552e9153856db645c6f180e8715358c9dcc268aaca58691e labels: app.kubernetes.io/name: opentelemetry-collector diff --git a/charts/opentelemetry-collector/examples/daemonset-only/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/daemonset-only/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/daemonset-only/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-only/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/clusterrole.yaml b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/clusterrole.yaml index 56d0b45e0..1564d54ee 100644 --- a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/clusterrole.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/clusterrole.yaml @@ -5,7 +5,7 @@ kind: ClusterRole metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/clusterrolebinding.yaml b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/clusterrolebinding.yaml index 8b199da9e..ff7ce17ab 100644 --- a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/clusterrolebinding.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/clusterrolebinding.yaml @@ -5,7 +5,7 @@ kind: ClusterRoleBinding metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/configmap-agent.yaml b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/configmap-agent.yaml index 853bc6d91..336475684 100644 --- a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/configmap-agent.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/configmap-agent.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/daemonset.yaml b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/daemonset.yaml index a2a9ab0c3..827017279 100644 --- a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/daemonset.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/daemonset.yaml @@ -5,7 +5,7 @@ kind: DaemonSet metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" @@ -21,7 +21,7 @@ spec: template: metadata: annotations: - checksum/config: ceb81173d48f7280ec8e8f737108fcc4145d08c4bed1764f615035ad964b35ee + checksum/config: f979bc50309a9372f024242f320448d0c08148aa33fe204a84538bec468c38d8 labels: app.kubernetes.io/name: opentelemetry-collector diff --git a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/daemonset-presets/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-presets/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-windows/rendered/configmap-agent.yaml b/charts/opentelemetry-collector/examples/daemonset-windows/rendered/configmap-agent.yaml index 8f99e8d8a..245e90f86 100644 --- a/charts/opentelemetry-collector/examples/daemonset-windows/rendered/configmap-agent.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-windows/rendered/configmap-agent.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/daemonset-windows/rendered/daemonset.yaml b/charts/opentelemetry-collector/examples/daemonset-windows/rendered/daemonset.yaml index c65d93ff6..f22f607c6 100644 --- a/charts/opentelemetry-collector/examples/daemonset-windows/rendered/daemonset.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-windows/rendered/daemonset.yaml @@ -5,7 +5,7 @@ kind: DaemonSet metadata: name: example-opentelemetry-collector-agent labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" @@ -21,7 +21,7 @@ spec: template: metadata: annotations: - checksum/config: 2aca0ef8db2e452eb73604d8e907035d49639ae5520ccc33fa78d52dd91679da + checksum/config: 0d9db3aa2fd1ecb7d5137cc58891f6e1925a37fed72823c79c0e9070bd011520 labels: app.kubernetes.io/name: opentelemetry-collector diff --git a/charts/opentelemetry-collector/examples/daemonset-windows/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/daemonset-windows/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/daemonset-windows/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/daemonset-windows/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/deployment-only/rendered/configmap.yaml b/charts/opentelemetry-collector/examples/deployment-only/rendered/configmap.yaml index 2abfd8326..f57e7fe1c 100644 --- a/charts/opentelemetry-collector/examples/deployment-only/rendered/configmap.yaml +++ b/charts/opentelemetry-collector/examples/deployment-only/rendered/configmap.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/deployment-only/rendered/deployment.yaml b/charts/opentelemetry-collector/examples/deployment-only/rendered/deployment.yaml index 9b6822e27..c2b4fc63d 100644 --- a/charts/opentelemetry-collector/examples/deployment-only/rendered/deployment.yaml +++ b/charts/opentelemetry-collector/examples/deployment-only/rendered/deployment.yaml @@ -5,7 +5,7 @@ kind: Deployment metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" @@ -23,7 +23,7 @@ spec: template: metadata: annotations: - checksum/config: a1e9d8f628b1ccdcbbfa0aa08e2b3c44fc2cce6c2a4f1fdc546d25a99f22efa2 + checksum/config: 9968b8e069b6d553624cfa9f1e1a70886a20e0535743c84cbf77a653432d4fc4 labels: app.kubernetes.io/name: opentelemetry-collector diff --git a/charts/opentelemetry-collector/examples/deployment-only/rendered/service.yaml b/charts/opentelemetry-collector/examples/deployment-only/rendered/service.yaml index ad0693054..8a719e7c5 100644 --- a/charts/opentelemetry-collector/examples/deployment-only/rendered/service.yaml +++ b/charts/opentelemetry-collector/examples/deployment-only/rendered/service.yaml @@ -5,7 +5,7 @@ kind: Service metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/deployment-only/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/deployment-only/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/deployment-only/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/deployment-only/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/configmap.yaml b/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/configmap.yaml index 13e018143..5b038d328 100644 --- a/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/configmap.yaml +++ b/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/configmap.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/deployment.yaml b/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/deployment.yaml index 359cee961..ab637242e 100644 --- a/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/deployment.yaml +++ b/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/deployment.yaml @@ -5,7 +5,7 @@ kind: Deployment metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" @@ -23,7 +23,7 @@ spec: template: metadata: annotations: - checksum/config: 2366f36431096ee6e3c4c9a7397ad02e8c85f38ee949cb4a6293c6d4256be1b0 + checksum/config: 0e161cfbed092a597f2c58f4ac1982ecb42a167d081bc4af65770cc303f69777 labels: app.kubernetes.io/name: opentelemetry-collector diff --git a/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/service.yaml b/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/service.yaml index 269ba44c8..e8f202dfb 100644 --- a/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/service.yaml +++ b/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/service.yaml @@ -5,7 +5,7 @@ kind: Service metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/deployment.yaml b/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/deployment.yaml index 3452b19d6..cacb12e9b 100644 --- a/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/deployment.yaml +++ b/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/deployment.yaml @@ -5,7 +5,7 @@ kind: Deployment metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/service.yaml b/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/service.yaml index ad0693054..8a719e7c5 100644 --- a/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/service.yaml +++ b/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/service.yaml @@ -5,7 +5,7 @@ kind: Service metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrole-targetallocator.yaml b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrole-targetallocator.yaml index 9c122217e..015f5047e 100644 --- a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrole-targetallocator.yaml +++ b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrole-targetallocator.yaml @@ -5,7 +5,7 @@ kind: ClusterRole metadata: name: example-opentelemetry-collector-targetallocator labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrole.yaml b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrole.yaml index 56d0b45e0..1564d54ee 100644 --- a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrole.yaml +++ b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrole.yaml @@ -5,7 +5,7 @@ kind: ClusterRole metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrolebinding-targetallocator.yaml b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrolebinding-targetallocator.yaml index 0d556a731..b3afe618f 100644 --- a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrolebinding-targetallocator.yaml +++ b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrolebinding-targetallocator.yaml @@ -5,7 +5,7 @@ kind: ClusterRoleBinding metadata: name: example-opentelemetry-collector-targetallocator labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrolebinding.yaml b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrolebinding.yaml index e842658cd..cafa849d2 100644 --- a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrolebinding.yaml +++ b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/clusterrolebinding.yaml @@ -5,7 +5,7 @@ kind: ClusterRoleBinding metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/opentelemetrycollector.yaml b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/opentelemetrycollector.yaml index e6dc3f95e..f2b8cefda 100644 --- a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/opentelemetrycollector.yaml +++ b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/opentelemetrycollector.yaml @@ -5,7 +5,7 @@ kind: OpenTelemetryCollector metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/serviceaccount-targetallocator.yaml b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/serviceaccount-targetallocator.yaml index 974557dd9..b28a99754 100644 --- a/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/serviceaccount-targetallocator.yaml +++ b/charts/opentelemetry-collector/examples/opentelemetrycollector-crd/rendered/serviceaccount-targetallocator.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: default-targetallocator labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/statefulset-only/rendered/configmap-statefulset.yaml b/charts/opentelemetry-collector/examples/statefulset-only/rendered/configmap-statefulset.yaml index c6762f6fc..d4bfde5d8 100644 --- a/charts/opentelemetry-collector/examples/statefulset-only/rendered/configmap-statefulset.yaml +++ b/charts/opentelemetry-collector/examples/statefulset-only/rendered/configmap-statefulset.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: example-opentelemetry-collector-statefulset labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/statefulset-only/rendered/service.yaml b/charts/opentelemetry-collector/examples/statefulset-only/rendered/service.yaml index 6642ca23e..e95652415 100644 --- a/charts/opentelemetry-collector/examples/statefulset-only/rendered/service.yaml +++ b/charts/opentelemetry-collector/examples/statefulset-only/rendered/service.yaml @@ -5,7 +5,7 @@ kind: Service metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/statefulset-only/rendered/serviceaccount.yaml b/charts/opentelemetry-collector/examples/statefulset-only/rendered/serviceaccount.yaml index d5991f39e..c9a676734 100644 --- a/charts/opentelemetry-collector/examples/statefulset-only/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-collector/examples/statefulset-only/rendered/serviceaccount.yaml @@ -5,7 +5,7 @@ kind: ServiceAccount metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/examples/statefulset-only/rendered/statefulset.yaml b/charts/opentelemetry-collector/examples/statefulset-only/rendered/statefulset.yaml index 68f5ebd14..1a5d73f53 100644 --- a/charts/opentelemetry-collector/examples/statefulset-only/rendered/statefulset.yaml +++ b/charts/opentelemetry-collector/examples/statefulset-only/rendered/statefulset.yaml @@ -5,7 +5,7 @@ kind: StatefulSet metadata: name: example-opentelemetry-collector labels: - helm.sh/chart: opentelemetry-collector-0.63.0 + helm.sh/chart: opentelemetry-collector-0.64.0 app.kubernetes.io/name: opentelemetry-collector app.kubernetes.io/instance: example app.kubernetes.io/version: "0.77.0" diff --git a/charts/opentelemetry-collector/templates/network-explorer/_helpers.tpl b/charts/opentelemetry-collector/templates/network-explorer/_helpers.tpl new file mode 100644 index 000000000..89c5dd0d0 --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/_helpers.tpl @@ -0,0 +1,82 @@ +{{/* +Fully qualified app name for the kernel-collector daemonset. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "opentelemetry-collector-kernel-collector.fullname" -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- printf "%s-kernel-collector" .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s-kernel-collector" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} + +{{/* +Create the name of the service account to use for the kernel-collector +*/}} +{{- define "opentelemetry-collector-kernel-collector.serviceAccountName" -}} +{{- if .Values.networkExplorer.kernelCollector.serviceAccount.create }} +{{- default (include "opentelemetry-collector-kernel-collector.fullname" .) .Values.networkExplorer.kernelCollector.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.networkExplorer.kernelCollector.serviceAccount.name }} +{{- end }} +{{- end }} + +{{/* +Fully qualified app name for the reducer deployment. +*/}} +{{- define "opentelemetry-collector-reducer.fullname" -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- printf "%s-reducer" .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s-reducer" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} + +{{/* +Fully qualified app name for the k8s-collector deployment. +*/}} +{{- define "opentelemetry-collector-k8s-collector.fullname" -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- printf "%s-k8s-collector" .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s-k8s-collector" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} + +{{/* +Create the name of the service account to use for the k8s-collector +*/}} +{{- define "opentelemetry-collector-k8s-collector.serviceAccountName" -}} +{{- if .Values.networkExplorer.k8sCollector.serviceAccount.create }} +{{- default (include "opentelemetry-collector-k8s-collector.fullname" .) .Values.networkExplorer.k8sCollector.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.networkExplorer.k8sCollector.serviceAccount.name }} +{{- end }} +{{- end }} + +{{/* +Fully qualified app name for the cloud-collector deployment. +*/}} +{{- define "opentelemetry-collector-cloud-collector.fullname" -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- printf "%s-cloud-collector" .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s-cloud-collector" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} + +{{/* +Create the name of the service account to use for the cloud-collector +*/}} +{{- define "opentelemetry-collector-cloud-collector.serviceAccountName" -}} +{{- if .Values.networkExplorer.cloudCollector.serviceAccount.create }} +{{- default (include "opentelemetry-collector-cloud-collector.fullname" .) .Values.networkExplorer.cloudCollector.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.networkExplorer.cloudCollector.serviceAccount.name }} +{{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/opentelemetry-collector/templates/network-explorer/cloud-collector-deployment.yaml b/charts/opentelemetry-collector/templates/network-explorer/cloud-collector-deployment.yaml new file mode 100644 index 000000000..e392653ac --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/cloud-collector-deployment.yaml @@ -0,0 +1,115 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.cloudCollector.enabled }} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "opentelemetry-collector-cloud-collector.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 3 + selector: + matchLabels: + app.kubernetes.io/name: {{ include "opentelemetry-collector-cloud-collector.fullname" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + strategy: + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "opentelemetry-collector-cloud-collector.fullname" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: +{{- if .Values.networkExplorer.imagePullSecrets }} + imagePullSecrets: +{{- range .Values.networkExplorer.imagePullSecrets }} + - name: {{ . }} +{{- end }} +{{- end }} + containers: + - image: "{{ default .Values.networkExplorer.images.repository .Values.networkExplorer.cloudCollector.image.repository }}/{{ .Values.networkExplorer.cloudCollector.image.name }}:{{ default .Values.networkExplorer.images.tag .Values.networkExplorer.cloudCollector.image.tag }}" + imagePullPolicy: {{ .Values.networkExplorer.images.pullPolicy }} + name: cloud-collector +{{- if hasKey .Values.networkExplorer.cloudCollector "resources" }} + resources: +{{ toYaml .Values.networkExplorer.cloudCollector.resources | indent 10 }} +{{- end }} + args: +{{- if .Values.networkExplorer.log.console }} + - --log-console +{{- end }} +{{- if hasKey .Values.networkExplorer.log "level" }} + - --{{ .Values.networkExplorer.log.level }} +{{- end }} +{{- if hasKey .Values.networkExplorer.cloudCollector "log" -}} +{{- if hasKey .Values.networkExplorer.cloudCollector.log "whitelist" }} +{{- if hasKey .Values.networkExplorer.cloudCollector.log.whitelist "channel" }} + - --log-whitelist-channel={{ .Values.networkExplorer.cloudCollector.log.whitelist.channel }} +{{- end }} +{{- if hasKey .Values.networkExplorer.cloudCollector.log.whitelist "component" }} + - --log-whitelist-component={{ .Values.networkExplorer.cloudCollector.log.whitelist.component }} +{{- end }} +{{- if hasKey .Values.networkExplorer.cloudCollector.log.whitelist "cloudPlatform" }} + - --log-whitelist-cloud-platform={{ .Values.networkExplorer.cloudCollector.log.whitelist.cloudPlatform }} +{{- end }} +{{- end }} +{{- end }} +{{- if .Values.networkExplorer.cloudCollector.additionalArgs }} +{{ toYaml .Values.networkExplorer.cloudCollector.additionalArgs | indent 10 }} +{{- end }} + env: + - name: "EBPF_NET_CLUSTER_NAME" + value: {{ tpl (.Values.networkExplorer.clusterName | toYaml) . }} +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.enabled) }} + - name: "EBPF_NET_DEBUG_MODE" + value: "true" +{{- end }} +{{- end }} +{{- if (default false .Values.networkExplorer.cloudCollector.runUnderGDB) }} + - name: "EBPF_NET_RUN_UNDER_GDB" + value: "gdb" +{{- end }} + - name: "EBPF_NET_INTAKE_HOST" + value: {{ include "opentelemetry-collector-reducer.fullname" . }} + - name: "EBPF_NET_INTAKE_PORT" + value: "{{ default 7000 .Values.networkExplorer.reducer.telemetryPort }}" +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - name: "EBPF_NET_MINIDUMP_DIR" + value: "/hostfs/var/run/network-explorer/minidump" +{{- end }} +{{- end }} +{{- if .Values.networkExplorer.cloudCollector.env }} +{{ toYaml .Values.networkExplorer.cloudCollector.env | indent 10 }} +{{- end }} +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + volumeMounts: + - mountPath: /hostfs/var/run/network-explorer + name: host-var-run-network-explorer + readOnly: false + volumes: + - name: host-var-run-network-explorer + hostPath: + path: /var/run/network-explorer + type: DirectoryOrCreate +{{- end }} +{{- end }} + terminationGracePeriodSeconds: 30 + securityContext: {} + serviceAccountName: {{ include "opentelemetry-collector-cloud-collector.serviceAccountName" . }} + {{- with .Values.networkExplorer.cloudCollector.nodeSelector }} + nodeSelector: +{{ toYaml . | indent 8}} + {{- end }} + {{- with .Values.networkExplorer.cloudCollector.affinity }} + affinity: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.networkExplorer.cloudCollector.tolerations }} + tolerations: +{{ toYaml . | indent 8 }} + {{- end }} +{{- end }} diff --git a/charts/opentelemetry-collector/templates/network-explorer/cloud-collector-serviceaccount.yaml b/charts/opentelemetry-collector/templates/network-explorer/cloud-collector-serviceaccount.yaml new file mode 100644 index 000000000..027835d0c --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/cloud-collector-serviceaccount.yaml @@ -0,0 +1,12 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.cloudCollector.enabled .Values.networkExplorer.cloudCollector.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "opentelemetry-collector-cloud-collector.serviceAccountName" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} + {{- with .Values.networkExplorer.cloudCollector.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +{{- end -}} diff --git a/charts/opentelemetry-collector/templates/network-explorer/configmap.yaml b/charts/opentelemetry-collector/templates/network-explorer/configmap.yaml new file mode 100644 index 000000000..074a4b9b7 --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/configmap.yaml @@ -0,0 +1,13 @@ +{{- if .Values.networkExplorer.enabled}} +## TODO: Review Cluster Name +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "opentelemetry-collector.fullname" . }}-config + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +data: + config.yaml: | + labels: + environment: {{ tpl (.Values.networkExplorer.clusterName | toYaml) . }} +{{- end }} diff --git a/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-clusterrole.yaml b/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-clusterrole.yaml new file mode 100644 index 000000000..dd0411162 --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-clusterrole.yaml @@ -0,0 +1,25 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.rbac.create -}} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "opentelemetry-collector-k8s-collector.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +rules: +- apiGroups: + - "" + resources: + - pods + verbs: + - get + - list + - watch +- apiGroups: + - apps + resources: + - replicasets + verbs: + - get + - list + - watch +{{- end -}} diff --git a/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-clusterrolebinding.yaml b/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-clusterrolebinding.yaml new file mode 100644 index 000000000..cafc8249c --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-clusterrolebinding.yaml @@ -0,0 +1,16 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.rbac.create -}} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "opentelemetry-collector-k8s-collector.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ include "opentelemetry-collector-k8s-collector.fullname" . }} +subjects: +- kind: ServiceAccount + name: {{ include "opentelemetry-collector-k8s-collector.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} +{{- end -}} diff --git a/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-deployment.yaml b/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-deployment.yaml new file mode 100644 index 000000000..fcdcd76ca --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-deployment.yaml @@ -0,0 +1,160 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.k8sCollector.enabled }} +# The k8s-collector consists of two services: +# 1) k8s-watcher: talks to the Kubernetes API server to determine the current state of +# the cluster; sets up watches to be notified of subsequent changes to pods, services +# and other resources. +# 2) k8s-relay: relays the information collected by k8s-watcher to the reducer. +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "opentelemetry-collector-k8s-collector.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 3 + selector: + matchLabels: + app.kubernetes.io/name: {{ include "opentelemetry-collector-k8s-collector.fullname" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + strategy: + type: RollingUpdate + template: + metadata: + annotations: + # This is here to allow us to do "zero-downtime" updates without an image change. + rollingUpdateVersion: "1" + charts.flowmill.com/version: {{ .Chart.Version }} + labels: + app.kubernetes.io/name: {{ include "opentelemetry-collector-k8s-collector.fullname" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: +{{- if .Values.networkExplorer.imagePullSecrets }} + imagePullSecrets: +{{- range .Values.networkExplorer.imagePullSecrets }} + - name: {{ . }} +{{- end }} +{{- end }} + containers: + - image: "{{ default .Values.networkExplorer.images.repository .Values.networkExplorer.k8sCollector.watcher.image.repository }}/{{ .Values.networkExplorer.k8sCollector.watcher.image.name }}:{{ default .Values.networkExplorer.images.tag .Values.networkExplorer.k8sCollector.watcher.image.tag }}" + imagePullPolicy: {{ .Values.networkExplorer.images.pullPolicy }} + name: k8s-watcher +{{- if hasKey .Values.networkExplorer.k8sCollector.watcher "resources" }} + resources: +{{ toYaml .Values.networkExplorer.k8sCollector.watcher.resources | indent 10 }} +{{- end }} + args: + - --log-console + {{- if hasKey .Values.networkExplorer.log "level" }} + - --log-level={{ .Values.networkExplorer.log.level }} + {{- end }} + # k8s-relay, which is a service that the k8s-watcher talks to. + # Currently not configurable, has to be reachable on localhost:8172, so must + # share a pod with the k8s-watcher above. + - image: "{{ default .Values.networkExplorer.images.repository .Values.networkExplorer.k8sCollector.relay.image.repository }}/{{ .Values.networkExplorer.k8sCollector.relay.image.name }}:{{ default .Values.networkExplorer.images.tag .Values.networkExplorer.k8sCollector.relay.image.tag }}" + imagePullPolicy: {{ .Values.networkExplorer.images.pullPolicy }} + name: k8s-relay +{{- if hasKey .Values.networkExplorer.k8sCollector.relay "resources" }} + resources: +{{ toYaml .Values.networkExplorer.k8sCollector.relay.resources | indent 10 }} +{{- end }} + args: + - --config-file=/etc/network-explorer/config.yaml +{{- if .Values.networkExplorer.log.console }} + - --log-console +{{- end }} +{{- if hasKey .Values.networkExplorer.log "level" }} + - --{{ .Values.networkExplorer.log.level }} +{{- end }} +{{- if hasKey .Values.networkExplorer.k8sCollector.relay "log" -}} +{{- if hasKey .Values.networkExplorer.k8sCollector.relay.log "whitelist" }} +{{- if hasKey .Values.networkExplorer.k8sCollector.relay.log.whitelist "channel" }} + - --log-whitelist-channel={{ .Values.networkExplorer.k8sCollector.relay.log.whitelist.channel }} +{{- end }} +{{- if hasKey .Values.networkExplorer.k8sCollector.relay.log.whitelist "component" }} + - --log-whitelist-component={{ .Values.networkExplorer.k8sCollector.relay.log.whitelist.component }} +{{- end }} +{{- if hasKey .Values.networkExplorer.k8sCollector.relay.log.whitelist "cloudPlatform" }} + - --log-whitelist-cloud-platform={{ .Values.networkExplorer.k8sCollector.relay.log.whitelist.cloudPlatform }} +{{- end }} +{{- end }} +{{- end }} +{{- if .Values.networkExplorer.k8sCollector.relay.additionalArgs }} +{{ toYaml .Values.networkExplorer.k8sCollector.relay.additionalArgs | indent 10 }} +{{- end }} + env: + - name: "EBPF_NET_CLUSTER_NAME" + value: {{ tpl (.Values.networkExplorer.clusterName | toYaml) . }} +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.enabled) }} + - name: "EBPF_NET_DEBUG_MODE" + value: "true" +{{- end }} +{{- end }} +{{- if (default false .Values.networkExplorer.k8sCollector.relay.runUnderGDB) }} + - name: "EBPF_NET_RUN_UNDER_GDB" + value: "gdb" +{{- end }} + - name: "EBPF_NET_INTAKE_HOST" + value: {{ include "opentelemetry-collector-reducer.fullname" . }} + - name: "EBPF_NET_INTAKE_PORT" + value: "{{ default 7000 .Values.networkExplorer.reducer.telemetryPort }}" +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - name: "EBPF_NET_MINIDUMP_DIR" + value: "/hostfs/var/run/network-explorer/minidump" +{{- end }} +{{- end }} +{{- if .Values.networkExplorer.debug.sendUnplannedExitMetric }} + - name: "EBPF_NET_CRASH_METRIC_HOST" + value: {{quote (include "opentelemetry-collector.fullname" .) }} + - name: "EBPF_NET_CRASH_METRIC_PORT" + value: {{ .Values.ports.otlp.servicePort | quote }} +{{- end }} +{{- if .Values.networkExplorer.k8sCollector.relay.env }} +{{ toYaml .Values.networkExplorer.k8sCollector.relay.env | indent 10 }} +{{- end }} + volumeMounts: + - mountPath: /etc/network-explorer + name: k8s-relay-config +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - mountPath: /hostfs/var/run/network-explorer + name: host-var-run-network-explorer + readOnly: false +{{- end }} +{{- end }} + terminationGracePeriodSeconds: 30 + volumes: +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - name: host-var-run-network-explorer + hostPath: + path: /var/run/network-explorer + type: DirectoryOrCreate +{{- end }} +{{- end }} + - name: k8s-relay-config + projected: + sources: + - configMap: + name: {{ include "opentelemetry-collector.fullname" . }}-config + items: + - key: config.yaml + path: config.yaml + securityContext: {} + serviceAccountName: {{ include "opentelemetry-collector-k8s-collector.serviceAccountName" . }} + {{- with .Values.networkExplorer.k8sCollector.nodeSelector }} + nodeSelector: +{{ toYaml . | indent 8}} + {{- end }} + {{- with .Values.networkExplorer.k8sCollector.affinity }} + affinity: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.networkExplorer.k8sCollector.tolerations }} + tolerations: +{{ toYaml . | indent 8 }} + {{- end }} +{{- end }} diff --git a/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-serviceaccount.yaml b/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-serviceaccount.yaml new file mode 100644 index 000000000..9de2d9b45 --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/k8s-collector-serviceaccount.yaml @@ -0,0 +1,8 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.k8sCollector.enabled .Values.networkExplorer.k8sCollector.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "opentelemetry-collector-k8s-collector.serviceAccountName" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +{{- end -}} diff --git a/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-clusterrole.yaml b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-clusterrole.yaml new file mode 100644 index 000000000..91ae7995a --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-clusterrole.yaml @@ -0,0 +1,17 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.rbac.create -}} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "opentelemetry-collector-kernel-collector.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +rules: +- apiGroups: + - policy + resourceNames: + - {{ include "opentelemetry-collector-kernel-collector.fullname" . }} + resources: + - podsecuritypolicies + verbs: + - use +{{- end -}} diff --git a/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-clusterrolebinding.yaml b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-clusterrolebinding.yaml new file mode 100644 index 000000000..256786c29 --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-clusterrolebinding.yaml @@ -0,0 +1,16 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.rbac.create -}} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "opentelemetry-collector-kernel-collector.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ include "opentelemetry-collector-kernel-collector.fullname" . }} +subjects: +- kind: ServiceAccount + name: {{ include "opentelemetry-collector-kernel-collector.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} +{{- end -}} diff --git a/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-daemonset.yaml b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-daemonset.yaml new file mode 100644 index 000000000..3ffd02ada --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-daemonset.yaml @@ -0,0 +1,199 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.kernelCollector.enabled }} +# kernel collector daemonset: deploys the kernel collector to each node in the cluster. +# The kernel collector needs to be able to compile and install +# eBPF programs in the node's kernel, so needs to run as root and +# needs to mount /lib/modules and /usr/src from the node itself. +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: {{ include "opentelemetry-collector-kernel-collector.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +spec: + selector: + matchLabels: + app.kubernetes.io/name: {{ include "opentelemetry-collector-kernel-collector.fullname" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + annotations: + release_number: "3" + charts.flowmill.com/version: {{ .Chart.Version }} + labels: + app.kubernetes.io/name: {{ include "opentelemetry-collector-kernel-collector.fullname" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: +{{- if .Values.networkExplorer.imagePullSecrets }} + imagePullSecrets: +{{- range .Values.networkExplorer.imagePullSecrets }} + - name: {{ . }} +{{- end }} +{{- end }} + containers: + - name: kernel-collector + image: "{{ default .Values.networkExplorer.images.repository .Values.networkExplorer.kernelCollector.image.repository }}/{{ .Values.networkExplorer.kernelCollector.image.name }}:{{ default .Values.networkExplorer.images.tag .Values.networkExplorer.kernelCollector.image.tag }}" + imagePullPolicy: {{ .Values.networkExplorer.images.pullPolicy }} + args: + - --config-file=/etc/network-explorer/config.yaml +{{- if .Values.networkExplorer.kernelCollector.bpfDumpFile }} + - --bpf-dump-file={{ .Values.networkExplorer.kernelCollector.bpfDumpFile }} +{{- end }} +{{- if (default false .Values.networkExplorer.kernelCollector.useDockerMetadata) }} + - --force-docker-metadata +{{- end }} +{{- if not (default false .Values.networkExplorer.kernelCollector.collectNomadMetadata) }} + - --disable-nomad-metadata +{{- end }} +{{- if .Values.networkExplorer.kernelCollector.userlandTcp }} + - --enable-userland-tcp +{{- end }} +{{- if .Values.networkExplorer.log.console }} + - --log-console +{{- end }} +{{- if hasKey .Values.networkExplorer.log "level" }} + - --{{ .Values.networkExplorer.log.level }} +{{- end }} +{{- if hasKey .Values.networkExplorer.kernelCollector "log" }} +{{- if hasKey .Values.networkExplorer.kernelCollector.log "whitelist" }} +{{- if hasKey .Values.networkExplorer.kernelCollector.log.whitelist "agentLog" }} + - --log-whitelist-agent-log={{ .Values.networkExplorer.kernelCollector.log.whitelist.agentLog }} +{{- end }} +{{- if hasKey .Values.networkExplorer.kernelCollector.log.whitelist "channel" }} + - --log-whitelist-channel={{ .Values.networkExplorer.kernelCollector.log.whitelist.channel }} +{{- end }} +{{- if hasKey .Values.networkExplorer.kernelCollector.log.whitelist "component" }} + - --log-whitelist-component={{ .Values.networkExplorer.kernelCollector.log.whitelist.component }} +{{- end }} +{{- if hasKey .Values.networkExplorer.kernelCollector.log.whitelist "cloudPlatform" }} + - --log-whitelist-cloud-platform={{ .Values.networkExplorer.kernelCollector.log.whitelist.cloudPlatform }} +{{- end }} +{{- end }} +{{- end }} +{{- if .Values.networkExplorer.kernelCollector.additionalArgs }} +{{ toYaml .Values.networkExplorer.kernelCollector.additionalArgs | indent 12 }} +{{- end }} + # TODO: liveness probe + env: + - name: "EBPF_NET_CLUSTER_NAME" + value: {{ tpl (.Values.networkExplorer.clusterName | toYaml) . }} +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.enabled) }} + - name: "EBPF_NET_DEBUG_MODE" + value: "true" +{{- end }} +{{- end }} + - name: "EBPF_NET_DISABLE_HTTP_METRICS" + value: {{ quote (default false .Values.networkExplorer.kernelCollector.disableHttpMetrics) }} +{{- if (default false .Values.networkExplorer.kernelCollector.runUnderGDB) }} + - name: "EBPF_NET_RUN_UNDER_GDB" + value: "gdb" +{{- end }} + - name: "EBPF_NET_KERNEL_HEADERS_AUTO_FETCH" + value: {{ quote (default true .Values.networkExplorer.kernelCollector.fetchKernelHeaders) }} + - name: "EBPF_NET_INTAKE_HOST" + value: {{ include "opentelemetry-collector-reducer.fullname" . }} + - name: "EBPF_NET_INTAKE_PORT" + value: "{{ default 7000 .Values.networkExplorer.reducer.telemetryPort }}" +{{- if .Values.networkExplorer.kernelCollector.exportBpfSrcFile }} + - name: "EBPF_NET_EXPORT_BPF_SRC_FILE" + value: {{ quote .Values.networkExplorer.kernelCollector.exportBpfSrcFile }} +{{- end }} + - name: "EBPF_NET_HOST_DIR" + value: "/hostfs" +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - name: "EBPF_NET_MINIDUMP_DIR" + value: "/hostfs/var/run/network-explorer/minidump" +{{- end }} +{{- end }} +{{- if .Values.networkExplorer.debug.sendUnplannedExitMetric }} + ## TODO: Needs to be reviewed. + ## it requires a collector running as deployment + - name: "EBPF_NET_CRASH_METRIC_HOST" + value: {{quote (include "opentelemetry-collector.fullname" .) }} + - name: "EBPF_NET_CRASH_METRIC_PORT" + value: {{ .Values.ports.otlp.servicePort | quote }} +{{- end }} +{{- if .Values.networkExplorer.kernelCollector.env }} +{{ toYaml .Values.networkExplorer.kernelCollector.env | indent 12 }} +{{- end }} +{{- if hasKey .Values.networkExplorer.kernelCollector "resources" }} + resources: +{{ toYaml .Values.networkExplorer.kernelCollector.resources | indent 12 }} +{{- end }} + securityContext: + privileged: true + volumeMounts: + - mountPath: /hostfs/ + name: host-root + readOnly: true +{{- if (default true .Values.networkExplorer.kernelCollector.fetchKernelHeaders) }} + - mountPath: /hostfs/var/cache + name: host-var-cache + readOnly: false +{{- end }} + - mountPath: /etc/network-explorer + name: {{ include "opentelemetry-collector.fullname" . }}-config + readOnly: true +{{- if (default false .Values.networkExplorer.kernelCollector.useDockerMetadata) }} + - mountPath: /var/run/docker.sock + name: docker-sock + readOnly: false +{{- end }} +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - mountPath: /hostfs/var/run/network-explorer + name: host-var-run-network-explorer + readOnly: false +{{- end }} +{{- end }} + dnsPolicy: ClusterFirstWithHostNet + hostNetwork: true + hostPID: true + serviceAccountName: {{ include "opentelemetry-collector-kernel-collector.serviceAccountName" . }} + volumes: + - name: {{ include "opentelemetry-collector.fullname" . }}-config + projected: + sources: + - configMap: + name: {{ include "opentelemetry-collector.fullname" . }}-config + items: + - key: config.yaml + path: config.yaml + - name: host-root + hostPath: + path: / + type: Directory +{{- if (default true .Values.networkExplorer.kernelCollector.fetchKernelHeaders) }} + - name: host-var-cache + hostPath: + path: /var/cache + type: DirectoryOrCreate +{{- end }} +{{- if hasKey .Values "debug" }} +{{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - name: host-var-run-network-explorer + hostPath: + path: /var/run/network-explorer + type: DirectoryOrCreate +{{- end }} +{{- end }} +{{- if (default false .Values.networkExplorer.kernelCollector.useDockerMetadata) }} + - name: docker-sock + hostPath: + path: /var/run/docker.sock + type: Socket +{{- end }} + {{- with .Values.networkExplorer.kernelCollector.nodeSelector }} + nodeSelector: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.networkExplorer.kernelCollector.affinity }} + affinity: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.networkExplorer.kernelCollector.tolerations }} + tolerations: +{{ toYaml . | indent 8 }} + {{- end }} +{{- end }} diff --git a/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-podsecuritypolicy.yaml b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-podsecuritypolicy.yaml new file mode 100644 index 000000000..219f66eab --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-podsecuritypolicy.yaml @@ -0,0 +1,38 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.podSecurityPolicy.enabled }} +apiVersion: policy/v1beta1 +kind: PodSecurityPolicy +metadata: + name: {{ include "opentelemetry-collector-kernel-collector.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +spec: + privileged: true + allowPrivilegeEscalation: true + allowedHostPaths: + - pathPrefix: /usr/src + readOnly: true + - pathPrefix: /lib/modules + readOnly: true + - pathPrefix: /etc + readOnly: true + - pathPrefix: /var/cache + readOnly: false + - pathPrefix: /sys/fs/cgroup + readOnly: true + fsGroup: + rule: RunAsAny + hostNetwork: true + hostPorts: + - max: 65535 + min: 0 + hostPID: true + readOnlyRootFilesystem: false + runAsUser: + rule: RunAsAny + seLinux: + rule: RunAsAny + supplementalGroups: + rule: RunAsAny + volumes: + - "*" +{{- end }} diff --git a/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-serviceaccount.yaml b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-serviceaccount.yaml new file mode 100644 index 000000000..5be16206a --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/kernel-collector-serviceaccount.yaml @@ -0,0 +1,8 @@ +{{- if and .Values.networkExplorer.enabled .Values.networkExplorer.kernelCollector.enabled .Values.networkExplorer.kernelCollector.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "opentelemetry-collector-kernel-collector.serviceAccountName" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +{{- end -}} diff --git a/charts/opentelemetry-collector/templates/network-explorer/reducer-deployment.yaml b/charts/opentelemetry-collector/templates/network-explorer/reducer-deployment.yaml new file mode 100644 index 000000000..dd0051ce0 --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/reducer-deployment.yaml @@ -0,0 +1,115 @@ +{{- if .Values.networkExplorer.enabled }} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "opentelemetry-collector-reducer.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +spec: + replicas: 1 + strategy: + type: RollingUpdate + selector: + matchLabels: + app.kubernetes.io/name: {{ include "opentelemetry-collector-reducer.fullname" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "opentelemetry-collector-reducer.fullname" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: +{{- if .Values.networkExplorer.imagePullSecrets }} + imagePullSecrets: +{{- range .Values.networkExplorer.imagePullSecrets }} + - name: {{ . }} +{{- end }} +{{- end }} + containers: + - name: reducer + image: "{{ default .Values.networkExplorer.images.repository .Values.networkExplorer.reducer.image.repository }}/{{ .Values.networkExplorer.reducer.image.name }}:{{ default .Values.networkExplorer.images.tag .Values.networkExplorer.reducer.image.tag }}" + imagePullPolicy: {{ .Values.networkExplorer.images.pullPolicy }} + args: + - --port={{- .Values.networkExplorer.reducer.telemetryPort }} + - --log-console + - --no-log-file + {{- if hasKey .Values.networkExplorer.log "level" }} + - --{{ .Values.networkExplorer.log.level }} + {{- end }} + - --enable-aws-enrichment + - --disable-prometheus-metrics + - --enable-otlp-grpc-metrics + - --otlp-grpc-metrics-host={{ include "opentelemetry-collector.fullname" . }} + - --otlp-grpc-metrics-port={{ .Values.ports.otlp.servicePort }} + {{- if .Values.networkExplorer.reducer.disableMetrics }} + - --disable-metrics={{join "," .Values.networkExplorer.reducer.disableMetrics}} + {{- end }} + {{- if .Values.networkExplorer.reducer.enableMetrics }} + - --enable-metrics={{join "," .Values.networkExplorer.reducer.enableMetrics}} + {{- end }} + {{- if .Values.networkExplorer.reducer.ingestShards }} + - --num-ingest-shards={{- .Values.networkExplorer.reducer.ingestShards }} + {{- end }} + {{- if .Values.networkExplorer.reducer.matchingShards }} + - --num-matching-shards={{- .Values.networkExplorer.reducer.matchingShards }} + {{- end }} + {{- if .Values.networkExplorer.reducer.aggregationShards }} + - --num-aggregation-shards={{- .Values.networkExplorer.reducer.aggregationShards }} + {{- end }} + {{- if .Values.networkExplorer.reducer.extraArgs }} + {{- toYaml .Values.networkExplorer.reducer.extraArgs | nindent 12 }} + {{- end }} + env: + {{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - name: "EBPF_NET_MINIDUMP_DIR" + value: "/hostfs/var/run/network-explorer/minidump" + {{- end }} + {{- if .Values.networkExplorer.debug.sendUnplannedExitMetric }} + - name: "EBPF_NET_CRASH_METRIC_HOST" + value: {{quote (include "opentelemetry-collector.fullname" .) }} + - name: "EBPF_NET_CRASH_METRIC_PORT" + value: {{ .Values.ports.otlp.servicePort | quote }} + {{- end }} + ports: + - name: telemetry + containerPort: {{ .Values.networkExplorer.reducer.telemetryPort }} + protocol: TCP + {{- if not .Values.networkExplorer.reducer.disableInternalMetrics }} + - name: stats + containerPort: {{ .Values.networkExplorer.reducer.statsPromPort }} + protocol: TCP + {{- end }} + volumeMounts: + {{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - mountPath: /hostfs/var/run/network-explorer + name: host-var-run-network-explorer + readOnly: false + {{- end }} + readinessProbe: + initialDelaySeconds: 5 + periodSeconds: 20 + timeoutSeconds: 5 + exec: + command: ['/srv/health_check.sh', 'readiness_probe', 'localhost', {{ quote .Values.networkExplorer.reducer.telemetryPort }}] + resources: + {{- toYaml .Values.networkExplorer.resources | nindent 12 }} + {{- with .Values.networkExplorer.reducer.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.networkExplorer.reducer.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.networkExplorer.reducer.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + volumes: + {{- if (default false .Values.networkExplorer.debug.storeMinidump) }} + - name: host-var-run-network-explorer + hostPath: + path: /var/run/network-explorer + type: DirectoryOrCreate + {{- end }} +{{- end }} diff --git a/charts/opentelemetry-collector/templates/network-explorer/reducer-service.yaml b/charts/opentelemetry-collector/templates/network-explorer/reducer-service.yaml new file mode 100644 index 000000000..528042379 --- /dev/null +++ b/charts/opentelemetry-collector/templates/network-explorer/reducer-service.yaml @@ -0,0 +1,24 @@ +{{- if .Values.networkExplorer.enabled}} +apiVersion: v1 +kind: Service +metadata: + name: {{ include "opentelemetry-collector-reducer.fullname" . }} + labels: + {{- include "opentelemetry-collector.labels" . | nindent 4 }} +spec: + type: ClusterIP + selector: + app.kubernetes.io/name: {{ include "opentelemetry-collector-reducer.fullname" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + ports: + - name: telemetry + port: {{ .Values.networkExplorer.reducer.telemetryPort }} + targetPort: telemetry + protocol: TCP + {{- if not .Values.networkExplorer.reducer.disableInternalMetrics }} + - name: stats + port: {{ .Values.networkExplorer.reducer.statsPromPort }} + targetPort: stats + protocol: TCP + {{- end }} +{{- end }} diff --git a/charts/opentelemetry-collector/values.schema.json b/charts/opentelemetry-collector/values.schema.json index 46bdfef4f..2a2636165 100644 --- a/charts/opentelemetry-collector/values.schema.json +++ b/charts/opentelemetry-collector/values.schema.json @@ -1091,6 +1091,156 @@ } } } + }, + "networkExplorer": { + "description": "Splunk Network Explorer Configuration", + "type": "object", + "additionalProperties": false, + "properties": { + "enabled": { + "description": "Enable network explorer", + "type": "boolean" + }, + "clusterName": { + "description": "Cluster Name", + "type": "string" + }, + "resources": { + "type": "object", + "additionalProperties": false, + "properties": { + "limits": { + "type": "object", + "additionalProperties": false, + "properties": { + "cpu": { + "type": [ + "string", + "integer" + ] + }, + "memory": { + "type": "string" + } + } + }, + "requests": { + "type": "object", + "additionalProperties": false, + "properties": { + "cpu": { + "type": [ + "string", + "integer" + ] + }, + "memory": { + "type": "string" + } + } + } + } + }, + "images": { + "description": "images", + "type": "object", + "additionalProperties": false, + "properties": { + "tag": { + "type": "string" + }, + "repository": { + "type": "string" + }, + "pullPolicy": { + "type": "string", + "enum": [ + "IfNotPresent", + "Always", + "Never" + ] + } + } + }, + "imagePullSecrets": { + "type": "array", + "items": { + "type": "string" + } + }, + "log": { + "type": "object", + "additionalProperties": false, + "properties": { + "console": { + "type": "boolean" + }, + "level": { + "type": "string", + "enum": [ + "error", + "warning", + "info", + "debug", + "trace" + ] + } + } + }, + "debug": { + "type": "object", + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean" + }, + "storeMinidump": { + "type": "boolean" + }, + "sendUnplannedExitMetric": { + "type": "boolean" + } + } + }, + "kernelCollector": { + "type": "object", + "additionalProperties": true + }, + "cloudCollector": { + "type": "object", + "additionalProperties": true + }, + "k8sCollector": { + "type": "object", + "additionalProperties": true + }, + "reducer": { + "type": "object", + "additionalProperties": true + }, + "rbac": { + "type": "object", + "additionalProperties": false, + "properties": { + "create": { + "type": "boolean" + } + } + }, + "podSecurityPolicy": { + "type": "object", + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean" + }, + "annotations": { + "type": "object", + "additionalProperties": true + } + } + } + } } }, "required": ["mode"] diff --git a/charts/opentelemetry-collector/values.yaml b/charts/opentelemetry-collector/values.yaml index 3e4674ef5..7509a9ab3 100644 --- a/charts/opentelemetry-collector/values.yaml +++ b/charts/opentelemetry-collector/values.yaml @@ -617,3 +617,269 @@ networkPolicy: # ports: # - port: 1234 # protocol: TCP + +# Default values for otel ebpf collector. +networkExplorer: + clusterName: "" + enabled: false + images: + tag: v0.10.0 + repository: otel + pullPolicy: IfNotPresent + imagePullSecrets: [] + + resources: {} + + log: + console: false + # possible values: { error | warning | info | debug | trace } + level: warning + + debug: + enabled: false + storeMinidump: false + sendUnplannedExitMetric: true + + kernelCollector: + enabled: true + serviceAccount: + create: true + name: "" + image: + repository: "" + tag: "" + name: opentelemetry-ebpf-kernel-collector + + nodeSelector: {} + disableHttpMetrics: false + + tolerations: + - operator: "Exists" + effect: "NoExecute" + - operator: "Exists" + effect: "NoSchedule" + + affinity: {} + resources: {} + + # uncomment the line below to disable automatic kernel headers fetching + # fetchKernelHeaders: false + + # uncomment to enable enrichment using Docker metadata + # useDockerMetadata: true + + # uncomment to enable enrichment using Nomad metadata (https://www.nomadproject.io/) + # collectNomadMetadata: true + + cloudCollector: + enabled: true + image: + repository: "" + tag: "" + name: opentelemetry-ebpf-cloud-collector + + serviceAccount: + create: true + name: "" + annotations: + {} + ## eks.amazonaws.com/role-arn: "role-arn-name" + + tolerations: [] + affinity: {} + + k8sCollector: + enabled: true + serviceAccount: + create: true + name: "" + relay: + image: + repository: "" + tag: "" + name: opentelemetry-ebpf-k8s-relay + watcher: + image: + repository: "" + tag: "" + name: opentelemetry-ebpf-k8s-watcher + + tolerations: [] + affinity: {} + + reducer: + image: + repository: "" + tag: "" + name: opentelemetry-ebpf-reducer + extraArgs: {} + ingestShards: 1 + matchingShards: 1 + aggregationShards: 1 + disableInternalMetrics: true + disableMetrics: + [] + ### to disable an entire metric category: ### + # - tcp.all + # - udp.all + # - dns.all + # - http.all + ### to disable an individual metric: ### + ### tcp ### + # - tcp.bytes + # - tcp.rtt.num_measurements + # - tcp.active + # - tcp.rtt.average + # - tcp.packets + # - tcp.retrans + # - tcp.syn_timeouts + # - tcp.new_sockets + # - tcp.resets + ### udp ### + # - udp.bytes + # - udp.packets + # - udp.active + # - udp.drops + ### dns ### + # - dns.client.duration.average + # - dns.server.duration.average + # - dns.active_sockets + # - dns.responses + # - dns.timeouts + ### http ## + # - http.client.duration.average + # - http.server.duration.average + # - http.active_sockets + # - http.status_code + ### ebpf_net ## + # - ebpf_net.span_utilization_fraction + # - ebpf_net.pipeline_metric_bytes_discarded + # - ebpf_net.codetiming_min_ns + # - ebpf_net.entrypoint_info + # - ebpf_net.otlp_grpc.requests_sent + # - ebpf_net.connections + # - ebpf_net.rpc_queue_elem_utilization_fraction + # - ebpf_net.disconnects + # - ebpf_net.codetiming_avg_ns + # - ebpf_net.client_handle_pool + # - ebpf_net.otlp_grpc.successful_requests + # - ebpf_net.span_utilization + # - ebpf_net.up + # - ebpf_net.rpc_queue_buf_utilization_fraction + # - ebpf_net.collector_log_count + # - ebpf_net.time_since_last_message_ns + # - ebpf_net.bpf_log + # - ebpf_net.codetiming_count + # - ebpf_net.message + # - ebpf_net.otlp_grpc.bytes_sent + # - ebpf_net.pipeline_message_error + # - ebpf_net.pipeline_metric_bytes_written + # - ebpf_net.codetiming_max_ns + # - ebpf_net.span_utilization_max + # - ebpf_net.client_handle_pool_fraction + # - ebpf_net.span_utilization_fraction + # - ebpf_net.rpc_latency_ns + # - ebpf_net.agg_root_truncation + # - ebpf_net.clock_offset_ns + # - ebpf_net.otlp_grpc.metrics_sent + # - ebpf_net.otlp_grpc.unknown_response_tags + # - ebpf_net.collector_health + # - ebpf_net.codetiming_sum_ns + # - ebpf_net.otlp_grpc.failed_requests + # - ebpf_net.rpc_queue_buf_utilization + ### to enable all metrics (including metrics turned off by default): ### + # - none + enableMetrics: + [] + ### Disable metrics flag is evaluated first and only then enable metric flag is evaluated. ### + ### to enable an entire metric category: ### + # - tcp.all + # - udp.all + # - dns.all + # - http.all + # - ebpf_net.all + ### to enable an individual metric: ### + ### tcp ### + # - tcp.bytes + # - tcp.rtt.num_measurements + # - tcp.active + # - tcp.rtt.average + # - tcp.packets + # - tcp.retrans + # - tcp.syn_timeouts + # - tcp.new_sockets + # - tcp.resets + ### udp ### + # - udp.bytes + # - udp.packets + # - udp.active + # - udp.drops + ### dns ### + # - dns.client.duration.average + # - dns.server.duration.average + # - dns.active_sockets + # - dns.responses + # - dns.timeouts + ### http ### + # - http.client.duration.average + # - http.server.duration.average + # - http.active_sockets + # - http.status_code + ### ebpf_net ### + # - ebpf_net.span_utilization_fraction + # - ebpf_net.pipeline_metric_bytes_discarded + # - ebpf_net.codetiming_min_ns + # - ebpf_net.entrypoint_info + # - ebpf_net.otlp_grpc.requests_sent + # - ebpf_net.connections + # - ebpf_net.rpc_queue_elem_utilization_fraction + # - ebpf_net.disconnects + # - ebpf_net.codetiming_avg_ns + # - ebpf_net.client_handle_pool + # - ebpf_net.otlp_grpc.successful_requests + # - ebpf_net.span_utilization + # - ebpf_net.up + # - ebpf_net.rpc_queue_buf_utilization_fraction + # - ebpf_net.collector_log_count + # - ebpf_net.time_since_last_message_ns + # - ebpf_net.bpf_log + # - ebpf_net.codetiming_count + # - ebpf_net.message + # - ebpf_net.otlp_grpc.bytes_sent + # - ebpf_net.pipeline_message_error + # - ebpf_net.pipeline_metric_bytes_written + # - ebpf_net.codetiming_max_ns + # - ebpf_net.span_utilization_max + # - ebpf_net.client_handle_pool_fraction + # - ebpf_net.span_utilization_fraction + # - ebpf_net.rpc_latency_ns + # - ebpf_net.agg_root_truncation + # - ebpf_net.clock_offset_ns + # - ebpf_net.otlp_grpc.metrics_sent + # - ebpf_net.otlp_grpc.unknown_response_tags + # - ebpf_net.collector_health + # - ebpf_net.codetiming_sum_ns + # - ebpf_net.otlp_grpc.failed_requests + # - ebpf_net.rpc_queue_buf_utilization + telemetryPort: 7000 + statsPromPort: 7001 + resources: {} + nodeSelector: {} + tolerations: [] + affinity: {} + + rbac: + create: true + + podSecurityPolicy: + enabled: true + annotations: + {} + ## Specify pod annotations + ## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#apparmor + ## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp + ## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#sysctl + ## + # seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*' + # seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default' + # apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default' diff --git a/charts/opentelemetry-ebpf/.helmignore b/charts/opentelemetry-ebpf/.helmignore new file mode 100644 index 000000000..0e8a0eb36 --- /dev/null +++ b/charts/opentelemetry-ebpf/.helmignore @@ -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/ diff --git a/charts/opentelemetry-ebpf/CONTRIBUTING.md b/charts/opentelemetry-ebpf/CONTRIBUTING.md new file mode 100644 index 000000000..e2dd7d2b0 --- /dev/null +++ b/charts/opentelemetry-ebpf/CONTRIBUTING.md @@ -0,0 +1,8 @@ +# Collector Chart Contributing Guide + +## Bumping Default Collector Version + +1. Increase the minor version of the chart by one and set the patch version to zero. +2. Update the chart's `appVersion` to match the new collector version. This version will be used as the image tag by default. +3. Review the corresponding release notes in [Collector Core](https://github.com/open-telemetry/opentelemetry-collector/releases), [Collector Contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib/releases), and [Collector Releases](https://github.com/open-telemetry/opentelemetry-collector-releases/releases). If any changes affect the helm charts, adjust the helm chart accordingly. +4. Run `make generate-examples`. \ No newline at end of file diff --git a/charts/opentelemetry-ebpf/Chart.yaml b/charts/opentelemetry-ebpf/Chart.yaml new file mode 100644 index 000000000..a522195c2 --- /dev/null +++ b/charts/opentelemetry-ebpf/Chart.yaml @@ -0,0 +1,15 @@ +apiVersion: v2 +name: opentelemetry-ebpf +version: 0.64.0 +description: OpenTelemetry eBPF Helm chart for Kubernetes +type: application +home: https://opentelemetry.io/ +sources: + - https://github.com/open-telemetry/opentelemetry-collector + - https://github.com/open-telemetry/opentelemetry-collector-contrib + - https://github.com/open-telemetry/opentelemetry-helm-charts + - https://github.com/open-telemetry/opentelemetry-ebpf +icon: https://opentelemetry.io/img/logos/opentelemetry-logo-nav.png +maintainers: + - name: atoulme +appVersion: 0.10.0 diff --git a/charts/opentelemetry-ebpf/README.md b/charts/opentelemetry-ebpf/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/charts/opentelemetry-ebpf/values.schema.json b/charts/opentelemetry-ebpf/values.schema.json new file mode 100644 index 000000000..e69de29bb diff --git a/charts/opentelemetry-ebpf/values.yaml b/charts/opentelemetry-ebpf/values.yaml new file mode 100644 index 000000000..e69de29bb