@@ -37,14 +37,19 @@ kind: ClusterRole
3737metadata:
3838 name: otel-collector
3939rules:
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>
4549----
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.
4853
4954. Bind the cluster role to the service account.
5055+
0 commit comments