Skip to content

Commit

Permalink
Initial commit adding README and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyclarke committed Dec 28, 2017
1 parent 5318759 commit c6db952
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
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
13 changes: 13 additions & 0 deletions README.md
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 .
```

0 comments on commit c6db952

Please sign in to comment.