Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/otel-collector-components.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Module included in the following assemblies:
//
// * observability/otel/otel-configuration-of-collector.adoc
// * observability/otel/otel-configuration-of-otel-collector.adoc

:_mod-docs-content-type: REFERENCE
[id="otel-collector-components_{context}"]
Expand Down
2 changes: 1 addition & 1 deletion modules/otel-collector-config-options.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Module included in the following assemblies:
//
// * observability/otel/otel-configuration-of-collector.adoc
// * observability/otel/otel-configuration-of-otel-collector.adoc

:_mod-docs-content-type: REFERENCE
[id="otel-collector-config-options_{context}"]
Expand Down
2 changes: 1 addition & 1 deletion modules/otel-config-target-allocator.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Module included in the following assemblies:
//
// * observability/otel/otel-configuration-of-collector.adoc
// * observability/otel/otel-configuration-of-otel-collector.adoc

:_mod-docs-content-type: REFERENCE
[id="otel-config-target-allocator_{context}"]
Expand Down
48 changes: 48 additions & 0 deletions modules/otel-creating-required-RBAC-resources-automatically.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Module included in the following assemblies:
//
// * observability/otel/otel-configuration-of-otel-collector.adoc

:_mod-docs-content-type: PROCEDURE
[id="otel-creating-required-RBAC-resources-automatically_{context}"]
= Creating the required RBAC resources automatically

Some Collector components require configuring the RBAC resources.

.Procedure

* Add the following permissions to the `opentelemetry-operator-controller-manage` service account so that the {OTELOperator} can create them automatically:
+
[source,yaml]
----
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: generate-processors-rbac
rules:
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- clusterroles
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: generate-processors-rbac
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: generate-processors-rbac
subjects:
- kind: ServiceAccount
name: opentelemetry-operator-controller-manager
namespace: openshift-opentelemetry-operator
----
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ The {OTELName} Operator uses a custom resource definition (CRD) file that define

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