Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Forwards the events of OpenShift to an external logging platform

License

NotificationsYou must be signed in to change notification settings

oscp/openshift-eventforwarder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Syslog forwarding

The standard mode for this applicaiton is to write to standard out. If you wish to send to Syslog instead, you can define SYSLOG_SERVER as an environment variable, and we will forward the logs the the syslog server instead of sending the events to the console/standard out. If you wish to send to both a syslog server as well as standard out, you can define the DEBUG environment variable and it will send to both standard out and the defined syslog server.

Installation

# Create a project & a service-accountoc project loggingoc create serviceaccount ose-eventforwarder# Add a new role to your cluster-policy:oc create -f deploy/clusterPolicy-forward.yaml# Add the role to the service-accountoc adm policy add-cluster-role-to-user ose:eventforwarder system:serviceaccount:logging:ose-eventforwarder# Deploy the new podoc create configmap forward-config \    --from-literal=syslog.server=\<syslogserver\>:\<syslogport\> \    --from-literal=syslog.tag=\<syslog tag\>oc create -f deploy/deploymentConfig.yaml

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

Parameters

ParamDescriptionExample
OPENSHIFT_API_URLYour OpenShift API Urlhttps://master01.ch:8443
OPENSHIFT_TOKENThe token of the service-account
SYSLOG_SERVERThe address and port of the target syslog serversyslogserver.corp.net:514
SYSLOG_PROTOSelect tcp or udp for protocol. Defaults to udp if not definedtcp
SYSLOG_TAGTag to send to syslog identifying the source. Defaults to OSE if not definedOSE_CORP
DEBUGSet to send to both standardout and syslog server. Defaults to FALSEFALSE or TRUE
IGNORE_SSLEnable or disable SSL/TLS for the master apiDefaults to FALSE

About

Forwards the events of OpenShift to an external logging platform

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp