Skip to content

Commit 99ffe89

Browse files
logging-collector-logs-writer clusterrole is not required to be created manually
- Inside `About Logging 6.0` [1] section in `Quick Start` [2] , the step number: 4, Create a ClusterRole for the collector: is not required. [1] https://docs.openshift.com/container-platform/4.16/observability/logging/logging-6.0/log6x-about.html [2] https://docs.openshift.com/container-platform/4.16/observability/logging/logging-6.0/log6x-about.html#quick-start - In step 4, it has been mentioned that the user needs to create the ClusterRole `logging-collector-logs-writer` but this ClusterRole is created automatically by the Loki operator and it is not required to create it manually. - This ClusterRole was also made available with the `Loki Operator 5.9` version. - Here is jira [3] for reference: [3] https://issues.redhat.com/browse/LOG-5967 - Hence step 4 needs to be omitted from documentation: ------ 4. Create a ClusterRole for the collector: ~~~ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: logging-collector-logs-writer rules: - apiGroups: - loki.grafana.com resourceNames: - logs resources: - application - audit - infrastructure verbs: - create ~~~
1 parent ca4ef1b commit 99ffe89

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

observability/logging/logging-6.0/log6x-about.adoc

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -74,27 +74,6 @@ spec:
7474
$ oc create sa collector -n openshift-logging
7575
----
7676

77-
. Create a `ClusterRole` for the collector:
78-
+
79-
[source,yaml]
80-
----
81-
apiVersion: rbac.authorization.k8s.io/v1
82-
kind: ClusterRole
83-
metadata:
84-
name: logging-collector-logs-writer
85-
rules:
86-
- apiGroups:
87-
- loki.grafana.com
88-
resourceNames:
89-
- logs
90-
resources:
91-
- application
92-
- audit
93-
- infrastructure
94-
verbs:
95-
- create
96-
----
97-
9877
. Bind the `ClusterRole` to the service account:
9978
+
10079
[source,shell]

0 commit comments

Comments
 (0)