Public | Automated Build

Last pushed: 5 months ago
Short Description
Forwards the events of OSE to an external logging platform
Full Description

General idea

We at @SchweizerischeBundesbahnen need to host all the OpenShift events outside our OSE-cluster as it would flood our etcd datastore if we keep the events of all projects for more than one day.
So this tools just attaches to the kubernetes API and logs all the events to console where they are grabbed and sent to our central logging environment.

Installation

# Create a project & a service-account
oc new-project sbb-infra
oc create serviceaccount ose-eventforwarder

# Add a new role to your cluster-policy:
oc edit clusterPolicy default

###
- name: ose:eventforwarder
  role:
    metadata:
      creationTimestamp: null
      name: ose:eventforwarder
    rules:
    - apiGroups:
      - ""
      attributeRestrictions: null
      resources:
      - events
      verbs:
      - get
      - list
      - watch
###

# Add the role to the service-account
oc adm policy add-cluster-role-to-user ose:eventforwarder system:serviceaccount:sbb-infra:ose-eventforwarder

Just create a 'oc new-app' from building the dockerfile or get it from here Dockerhub.

Parameters

Param Description Example
OPENSHIFT_API_URL Your OpenShift API Url https://master01.ch:8443
OPENSHIFT_TOKEN The token of the service-account
Docker Pull Command
Owner
oscp
Source Repository

Comments (0)