Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated fluentd and all plugins #98339

Merged
merged 1 commit into from Feb 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -32,12 +32,13 @@ COPY Gemfile /Gemfile

SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]

# hadolint ignore=DL3008,DL3028
RUN apt-get update && \
apt-get install -y --no-install-recommends g++ gcc make && \
rm -rf /var/lib/apt/lists/* && \
echo 'gem: --no-document' >> /etc/gemrc && \
gem install --file Gemfile


FROM ruby:2.7-slim-buster

ARG DEBIAN_FRONTEND=noninteractive
Expand All @@ -49,10 +50,11 @@ COPY --from=builder /usr/local/bundle/ /usr/local/bundle

SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]

# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y --no-install-recommends libjemalloc2 && \
apt-get clean -y && \
ulimit -n 65536 && \
ulimit -n 65536 && \
rm -rf \
/var/cache/debconf/* \
/var/lib/apt/lists/* \
Expand All @@ -63,7 +65,5 @@ RUN apt-get update && \
# Expose prometheus metrics.
EXPOSE 80

ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2

# Start Fluentd to pick up our config that watches Docker container logs.
CMD ["/entrypoint.sh"]
15 changes: 7 additions & 8 deletions cluster/addons/fluentd-elasticsearch/fluentd-es-image/Gemfile
@@ -1,14 +1,13 @@
source 'https://rubygems.org'

gem 'activesupport', '6.0.3.4'
gem 'elasticsearch-xpack', '7.9.0'
gem 'fluentd', '1.11.4'
gem 'activesupport', '6.1.1'
gem 'elasticsearch-xpack', '7.10.1'
gem 'fluentd', '1.12.0'
gem 'fluent-plugin-concat', '2.4.0'
gem 'fluent-plugin-detect-exceptions', '0.0.13'
gem 'fluent-plugin-elasticsearch', '4.2.2'
gem 'fluent-plugin-kubernetes_metadata_filter', '2.5.2'
gem 'fluent-plugin-elasticsearch', '4.3.3'
gem 'fluent-plugin-kubernetes_metadata_filter', '2.6.0'
gem 'fluent-plugin-multi-format-parser', '1.0.0'
gem 'fluent-plugin-prometheus', '1.8.4'
gem 'fluent-plugin-prometheus', '1.8.5'
gem 'fluent-plugin-systemd', '1.0.2'
gem 'oj', '3.10.15'

gem 'oj', '3.11.0'
Expand Up @@ -16,7 +16,7 @@

PREFIX = quay.io/fluentd_elasticsearch
IMAGE = fluentd
TAG = v3.1.0
TAG = v3.2.0

build:
docker build --tag ${PREFIX}/${IMAGE}:${TAG} .
Expand Down
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Copyright 2017 The Kubernetes Authors.
#
Expand All @@ -20,6 +20,13 @@
# For systems without journald
mkdir -p /var/log/journal

# set ld preload
if dpkg --print-architecture | grep -q amd64;then
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
else
export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libjemalloc.so.2
fi

# Use exec to get the signal
# A non-quoted string and add the comment to prevent shellcheck failures on this line.
# See https://github.com/koalaman/shellcheck/wiki/SC2086
Expand Down