Skip to content

Commit 63b148c

Browse files
authored
Merge pull request #74820 from max-cx/OBSDOCS-992
OBSDOCS-992: Fix ClusterRole for Kubernetes attributes processor
2 parents 5efff0b + 39c200c commit 63b148c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

modules/otel-collector-components.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,13 +1084,17 @@ This processor automatically identifies the Kubernetes resources, extracts the m
10841084
.Minimum {product-title} permissions required for the Kubernetes Attributes Processor
10851085
[source,yaml]
10861086
----
1087+
apiVersion: rbac.authorization.k8s.io/v1
10871088
kind: ClusterRole
10881089
metadata:
10891090
name: otel-collector
10901091
rules:
1091-
- apiGroups: ['']
1092-
resources: ['pods', 'namespaces']
1093-
verbs: ['get', 'watch', 'list']
1092+
- apiGroups: [""]
1093+
resources: ["pods", "namespaces", "nodes"]
1094+
verbs: ["get", "watch", "list"]
1095+
- apiGroups: ["apps"]
1096+
resources: ["replicasets"]
1097+
verbs: ["get", "list", "watch"]
10941098
----
10951099

10961100
.OpenTelemetry Collector using the Kubernetes Attributes Processor

0 commit comments

Comments
 (0)