Skip to content

Commit f5fa365

Browse files
Edit 2 steps in quick start procedure of About Logging 6.0 documentation
- Need to edit 2 steps in the Quick Start point of About Logging 6.0 documentation. - Here is the documentation link: https://docs.openshift.com/container-platform/4.17/observability/logging/logging-6.0/log6x-about.html#quick-start - This is the last and important change in the Quick start process. - In step 5 and step 8 changes are required: ---- 5. Bind the ClusterRole to the service account: ~~~ $ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector ~~~ 8. Add additional roles to the collector service account: ~~~ $ oc project openshift-logging $ oc adm policy add-cluster-role-to-user collect-application-logs -z collector $ oc adm policy add-cluster-role-to-user collect-audit-logs -z collector $ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector ~~~ ---- - In these steps, commands are properly mentioned. - However, the project name is not mentioned in the commands. - So we need to mention project name in the above commands. Reason: 1. If for any reason the user has changed the namespace in the middle, then, it will create the resource in the wrong namespace. 2. If the credentials are shared, and two people using the same cluster at the same time, then, the second person could change to work in a different namespace. - Hence we need to explicitly mention the `-n openshift-logging` in the above commands. - Here are the new required changes: ---- 5. Bind the ClusterRole to the service account: ~~~ $ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector -n openshift-logging ~~~ 8. Add additional roles to the collector service account: ~~~ $ oc adm policy add-cluster-role-to-user collect-application-logs -z collector -n openshift-logging $ oc adm policy add-cluster-role-to-user collect-audit-logs -z collector -n openshift-logging $ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector -n openshift-logging ~~~ ----
1 parent 0c7e766 commit f5fa365

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ $ oc create sa collector -n openshift-logging
9292
+
9393
[source,shell]
9494
----
95-
$ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector
95+
$ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector -n openshift-logging
9696
----
9797

9898
. Install the Cluster Observability Operator.
@@ -116,10 +116,9 @@ spec:
116116
+
117117
[source,shell]
118118
----
119-
$ oc project openshift-logging
120-
$ oc adm policy add-cluster-role-to-user collect-application-logs -z collector
121-
$ oc adm policy add-cluster-role-to-user collect-audit-logs -z collector
122-
$ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector
119+
$ oc adm policy add-cluster-role-to-user collect-application-logs -z collector -n openshift-logging
120+
$ oc adm policy add-cluster-role-to-user collect-audit-logs -z collector -n openshift-logging
121+
$ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector -n openshift-logging
123122
----
124123

125124
. Create a `ClusterLogForwarder` CR to configure log forwarding:

0 commit comments

Comments
 (0)