From c6db952b84d939444d723e80a7e0e69fa6a2cc2b Mon Sep 17 00:00:00 2001 From: Timothy Clarke Date: Thu, 28 Dec 2017 11:16:42 +0000 Subject: [PATCH] Initial commit adding README and Dockerfile --- Dockerfile | 17 +++++++++++++++++ README.md | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6366d3b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM fluent/fluentd-kubernetes-daemonset:elasticsearch +MAINTAINER Timothy Clarke + +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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..fbb4d13 --- /dev/null +++ b/README.md @@ -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 . +``` +