-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit adding README and Dockerfile
- Loading branch information
1 parent
5318759
commit c6db952
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM fluent/fluentd-kubernetes-daemonset:elasticsearch | ||
MAINTAINER Timothy Clarke <[email protected]> | ||
|
||
WORKDIR /home/fluent | ||
|
||
RUN set -ex \ | ||
&& apk add --no-cache --virtual .build-deps \ | ||
build-base \ | ||
ruby-dev \ | ||
libffi-dev \ | ||
&& gem uninstall remote_syslog_logger \ | ||
&& gem install fluent-plugin-concat fluent-plugin-kubernetes_remote_syslog fluent-plugin-logzio remote_syslog_sender \ | ||
&& sed 's/type/@type/g' -i /fluentd/etc/kubernetes.conf \ | ||
&& sed 's/RemoteSyslogLogger/RemoteSyslogSender/g' -i /usr/lib/ruby/gems/2.3.0/gems/fluent-plugin-kubernetes_remote_syslog-0.3.5/lib/fluent/plugin/out_kubernetes_remote_syslog.rb \ | ||
&& apk del .build-deps \ | ||
&& gem sources --clear-all \ | ||
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# fluentd-kubernetes-daemonset | ||
Container is based off the elastic search one, but with syslog bits added for papertrail | ||
[Papertrail FluentD logger](https://help.papertrailapp.com/kb/configuration/configuring-centralized-logging-from-kubernetes/#fluentd) | ||
|
||
```bash | ||
$ sudo -u fluent gem install fluent-plugin-kubernetes_remote_syslog | ||
``` | ||
|
||
Build with something like | ||
```bash | ||
$ docker build -t fluentd-es-pt:latest . | ||
``` | ||
|