Skip to content

Commit 55a10c1

Browse files
authored
Merge pull request #68493 from abrennan89/OBSDOCS-112
OBSDOCS-112: Update event router template
2 parents 3380689 + 4a5f833 commit 55a10c1

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

logging/log_collection_forwarding/cluster-logging-eventrouter.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,4 @@ The Event Router collects events from all projects and writes them to `STDOUT`.
1515
The Event Router adds additional load to Fluentd and can impact the number of other log messages that can be processed.
1616
====
1717

18-
// The following include statements pull in the module files that comprise
19-
// the assembly. Include any combination of concept, procedure, or reference
20-
// modules required to cover the user story. You can also include other
21-
// assemblies.
22-
2318
include::modules/cluster-logging-eventrouter-deploy.adoc[leveloffset=+1]

modules/cluster-logging-eventrouter-deploy.adoc

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ objects:
4343
- apiGroups: [""]
4444
resources: ["events"]
4545
verbs: ["get", "watch", "list"]
46-
- kind: ClusterRoleBinding <3>
46+
- kind: ClusterRoleBinding <3>
4747
apiVersion: rbac.authorization.k8s.io/v1
4848
metadata:
4949
name: event-reader-binding
@@ -100,15 +100,24 @@ objects:
100100
volumeMounts:
101101
- name: config-volume
102102
mountPath: /etc/eventrouter
103+
securityContext:
104+
allowPrivilegeEscalation: false
105+
seccompProfile:
106+
type: RuntimeDefault
107+
capabilities:
108+
drop:
109+
- ALL
103110
volumes:
104111
- name: config-volume
105112
configMap:
106113
name: eventrouter
114+
securityContext:
115+
runAsNonRoot: true
107116
parameters:
108117
- name: IMAGE <6>
109118
displayName: Image
110119
value: "registry.redhat.io/openshift-logging/eventrouter-rhel8:v0.4"
111-
- name: CPU <7>
120+
- name: CPU <7>
112121
displayName: CPU
113122
value: "100m"
114123
- name: MEMORY <8>
@@ -146,8 +155,8 @@ $ oc process -f eventrouter.yaml | oc apply -n openshift-logging -f -
146155
[source,terminal]
147156
----
148157
serviceaccount/eventrouter created
149-
clusterrole.authorization.openshift.io/event-reader created
150-
clusterrolebinding.authorization.openshift.io/event-reader-binding created
158+
clusterrole.rbac.authorization.k8s.io/event-reader created
159+
clusterrolebinding.rbac.authorization.k8s.io/event-reader-binding created
151160
configmap/eventrouter created
152161
deployment.apps/eventrouter created
153162
----

0 commit comments

Comments
 (0)