You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting a warning after applying the OpenTelemetryCollector CR with TargetAllocator enabled, in spite of having created the appropriate ServiceAccount, ClusterRole, and ClusterRoleBinding for the TA based on the documentation here. See warning message below.
Steps to Reproduce
Create ServiceAccount, RoleBinding, and ClusterRoleBinding as follows:
The following warning comes up after I apply the OpenTelemetryCollector CR. Note that this is non-blocking - my code is working; however, the warning is misleading.
Warning: missing the following rules for namespaces: [get,list,watch]
Warning: missing the following rules for networking.k8s.io/ingresses: [get,list,watch]
Warning: missing the following rules for nonResourceURL: /metrics: [get]
Warning: missing the following rules for monitoring.coreos.com/podmonitors: [*]
Warning: missing the following rules for nodes: [get,list,watch]
Warning: missing the following rules for services: [get,list,watch]
Warning: missing the following rules for endpoints: [get,list,watch]
Warning: missing the following rules for pods: [get,list,watch]
Warning: missing the following rules for configmaps: [get]
Warning: missing the following rules for discovery.k8s.io/endpointslices: [get,list,watch]
Warning: missing the following rules for monitoring.coreos.com/servicemonitors: [*]
Warning: missing the following rules for nodes/metrics: [get,list,watch]
opentelemetrycollector.opentelemetry.io/otelcol created
Kubernetes Version
1.27.3
Operator version
0.94.0
Collector version
0.94.0
Environment information
Environment
OS: MacOS Sonoma 14.1.1 (also got the same result in GH codespaces)
Compiler(if manually compiled): N/A
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
I'm seeing these warnings with version 0.107.0, despite seemingly having the proper permissions. Will try to collect more info. My current theory is that the operator creates a service account (name ending in -collector) for the given OpenTelemetryCollector, and when I specify a different one to use, it still looks for permissions on the one it creates, instead of the one I assigned to it.
Strangely, I only get warnings on the otel instance that has target allocator enabled. I have other instances for non-metrics telemetry, and even though they also seem to have an extra service account created by the operator (not in use), they don't get the same warnings.
Component(s)
target allocator
What happened?
Description
Getting a warning after applying the
OpenTelemetryCollector
CR with TargetAllocator enabled, in spite of having created the appropriateServiceAccount
,ClusterRole
, andClusterRoleBinding
for the TA based on the documentation here. See warning message below.Steps to Reproduce
Create
ServiceAccount
,RoleBinding
, andClusterRoleBinding
as follows:Create the following
OpenTelemetryCollector
CR using theServiceAccount
defined above:Expected Result
I should not be seeing the warning below.
Actual Result
The following warning comes up after I apply the OpenTelemetryCollector CR. Note that this is non-blocking - my code is working; however, the warning is misleading.
Kubernetes Version
1.27.3
Operator version
0.94.0
Collector version
0.94.0
Environment information
Environment
OS: MacOS Sonoma 14.1.1 (also got the same result in GH codespaces)
Compiler(if manually compiled): N/A
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: