Skip to content

Commit c4f1e05

Browse files
authored
Merge pull request #75067 from max-cx/TRACING-3899
OBSDOCS-928: Document permissions to generate automatically the permissions for the processors
2 parents 4e74e13 + 6f55583 commit c4f1e05

5 files changed

+52
-3
lines changed

modules/otel-collector-components.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * observability/otel/otel-configuration-of-collector.adoc
3+
// * observability/otel/otel-configuration-of-otel-collector.adoc
44

55
:_mod-docs-content-type: REFERENCE
66
[id="otel-collector-components_{context}"]

modules/otel-collector-config-options.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * observability/otel/otel-configuration-of-collector.adoc
3+
// * observability/otel/otel-configuration-of-otel-collector.adoc
44

55
:_mod-docs-content-type: REFERENCE
66
[id="otel-collector-config-options_{context}"]

modules/otel-config-target-allocator.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * observability/otel/otel-configuration-of-collector.adoc
3+
// * observability/otel/otel-configuration-of-otel-collector.adoc
44

55
:_mod-docs-content-type: REFERENCE
66
[id="otel-config-target-allocator_{context}"]
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * observability/otel/otel-configuration-of-otel-collector.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="otel-creating-required-RBAC-resources-automatically_{context}"]
7+
= Creating the required RBAC resources automatically
8+
9+
Some Collector components require configuring the RBAC resources.
10+
11+
.Procedure
12+
13+
* Add the following permissions to the `opentelemetry-operator-controller-manage` service account so that the {OTELOperator} can create them automatically:
14+
+
15+
[source,yaml]
16+
----
17+
apiVersion: rbac.authorization.k8s.io/v1
18+
kind: ClusterRole
19+
metadata:
20+
name: generate-processors-rbac
21+
rules:
22+
- apiGroups:
23+
- rbac.authorization.k8s.io
24+
resources:
25+
- clusterrolebindings
26+
- clusterroles
27+
verbs:
28+
- create
29+
- delete
30+
- get
31+
- list
32+
- patch
33+
- update
34+
- watch
35+
---
36+
apiVersion: rbac.authorization.k8s.io/v1
37+
kind: ClusterRoleBinding
38+
metadata:
39+
name: generate-processors-rbac
40+
roleRef:
41+
apiGroup: rbac.authorization.k8s.io
42+
kind: ClusterRole
43+
name: generate-processors-rbac
44+
subjects:
45+
- kind: ServiceAccount
46+
name: opentelemetry-operator-controller-manager
47+
namespace: openshift-opentelemetry-operator
48+
----

observability/otel/otel-configuration-of-otel-collector.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ The {OTELName} Operator uses a custom resource definition (CRD) file that define
1010

1111
include::modules/otel-collector-config-options.adoc[leveloffset=+1]
1212
include::modules/otel-collector-components.adoc[leveloffset=+1]
13+
include::modules/otel-creating-required-RBAC-resources-automatically.adoc[leveloffset=+1]
1314
include::modules/otel-config-target-allocator.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)