-
Notifications
You must be signed in to change notification settings - Fork 2
chore: update daemonset to use resource processor #46
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -61,8 +61,9 @@ kwok: generate | |||||
|
|
||||||
| .PHONY: kwok-down | ||||||
| kwok-down: | ||||||
| @docker rm -f kwok-otel-collector kwok-stats-proxy kwok-beyla lgtm 2>/dev/null || true | ||||||
| @for c in $$(docker ps -a -q --filter "name=kwok-hostmetrics-replicator" 2>/dev/null); do docker rm -f $$c 2>/dev/null || true; done | ||||||
| @docker rm -f kwok-otel-collector kwok-otel-gateway kwok-stats-proxy kwok-beyla lgtm 2>/dev/null || true | ||||||
| @for c in $$(docker ps -a -q --filter "name=kwok-hostmetrics" 2>/dev/null); do docker rm -f $$c 2>/dev/null || true; done | ||||||
|
||||||
| @for c in $$(docker ps -a -q --filter "name=kwok-hostmetrics" 2>/dev/null); do docker rm -f $$c 2>/dev/null || true; done | |
| @for c in $$(docker ps -a -q --filter "name=kwok-hostmetrics-replicator" 2>/dev/null); do docker rm -f $$c 2>/dev/null || true; done |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| FROM golang:1.25-alpine@sha256:98e6cffc31ccc44c7c15d83df1d69891efee8115a5bb7ede2bf30a38af3e3c92 AS builder | ||||||
| FROM golang:1.26-alpine AS builder | ||||||
|
||||||
| FROM golang:1.26-alpine AS builder | |
| FROM golang:1.26-alpine@sha256:<exact-digest-for-golang-1.26-alpine> AS builder |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,8 +49,8 @@ config: | |
| extract: | ||
| otel_annotations: true | ||
|
|
||
| attributes/k8sclustername: | ||
| actions: | ||
| resource/k8sclustername: | ||
| attributes: | ||
| - key: k8s.cluster.name | ||
| action: upsert | ||
| value: kubernetes-mixin-otel | ||
|
Comment on lines
+52
to
56
|
||
|
|
@@ -91,7 +91,7 @@ config: | |
| processors: [ | ||
| resourcedetection, | ||
| k8sattributes, | ||
| attributes/k8sclustername, | ||
| resource/k8sclustername, | ||
| resource/hostname, | ||
| transform/copy_node_name, | ||
| batch, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
|
|
||
| CLUSTER_NAME="${CLUSTER_NAME:-queries-testing}" | ||
| KWOK_CONTEXT="kwok-${CLUSTER_NAME}" | ||
| KWOK_NET="kwok-${CLUSTER_NAME}" | ||
|
Collaborator
Author
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. used in line 82 |
||
| OTEL_CONFIG="${SCRIPT_DIR}/kwok-config/kwok-otel-collector.yaml" | ||
| KUBECONFIG_TEMPLATE="${SCRIPT_DIR}/kwok-config/otel-kwokconfig.yaml" | ||
| KUBECONFIG_OUT="/tmp/kwok-kubeconfig" | ||
|
|
||
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.
The cleanup now includes removal of a 'kwok-otel-gateway' container, but there are no references to this container being created in any of the scripts in the repository. If this container is created elsewhere or is planned for future use, this is fine. Otherwise, this cleanup step may be unnecessary.