FIX(otel): use per-node strategy for DaemonSet mode

- Change allocationStrategy to per-node (required for DaemonSet)
- Operator rejects consistent-hashing with DaemonSet mode
This commit is contained in:
2026-01-09 23:32:56 +09:00
parent 1fdbb5e1dd
commit 254687225c

View File

@@ -18,12 +18,12 @@ spec:
serviceAccount: otel-collector
# Target Allocator - distributes Prometheus scrape targets across collectors
# Using consistent-hashing strategy (not per-node due to collector-node mapping bug)
# per-node strategy: each collector scrapes targets on its own node
targetAllocator:
enabled: true
serviceAccount: otel-collector-targetallocator
image: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:0.113.0
allocationStrategy: consistent-hashing
allocationStrategy: per-node
filterStrategy: relabel-config
prometheusCR:
enabled: true