@@ -37,14 +37,19 @@ kind: ClusterRole
37
37
metadata:
38
38
name: otel-collector
39
39
rules:
40
- # <1>
41
- # <2>
42
- - apiGroups: ["", "config.openshift.io"]
43
- resources: ["pods", "namespaces", "infrastructures", "infrastructures/status"]
44
- verbs: ["get", "watch", "list"]
40
+ - apiGroups: [""]
41
+ resources: ["pods", "namespaces",]
42
+ verbs: ["get", "watch", "list"] # <1>
43
+ - apiGroups: ["apps"]
44
+ resources: ["replicasets"]
45
+ verbs: ["get", "watch", "list"] # <2>
46
+ - apiGroups: ["config.openshift.io"]
47
+ resources: ["infrastructures", "infrastructures/status"]
48
+ verbs: ["get", "watch", "list"] # <3>
45
49
----
46
- <1> The `k8sattributesprocessor` requires permissions for pods and namespaces resources.
47
- <2> The `resourcedetectionprocessor` requires permissions for infrastructures and status.
50
+ <1> This example uses the Kubernetes Attributes Processor, which requires these permissions for the `pods` and `namespaces` resources.
51
+ <2> Also due to the Kubernetes Attributes Processor, these permissions are required for the `replicasets` resources.
52
+ <3> This example also uses the Resource Detection Processor, which requires these permissions for the `infrastructures` and `status` resources.
48
53
49
54
. Bind the cluster role to the service account.
50
55
+
0 commit comments