diff --git a/docker-image/v0.12/alpine-file/.dockerignore b/docker-image/v0.12/alpine-file/.dockerignore new file mode 100644 index 000000000..921ed3fe9 --- /dev/null +++ b/docker-image/v0.12/alpine-file/.dockerignore @@ -0,0 +1 @@ +**/*.gitkeep \ No newline at end of file diff --git a/docker-image/v0.12/alpine-file/Dockerfile b/docker-image/v0.12/alpine-file/Dockerfile new file mode 100644 index 000000000..dcbaf0187 --- /dev/null +++ b/docker-image/v0.12/alpine-file/Dockerfile @@ -0,0 +1,18 @@ +FROM fluent/fluentd:v0.12.33 +USER root +WORKDIR /home/fluent + +# Copy configuration files +COPY ./conf/fluent.conf /fluentd/etc/ +COPY ./conf/kubernetes.conf /fluentd/etc/ + +# Copy plugins +COPY plugins /fluentd/plugins/ +COPY entrypoint.sh /fluentd/entrypoint.sh + +# Environment variables +ENV FLUENTD_OPT="" +ENV FLUENTD_CONF="fluent.conf" + +# Run Fluentd +CMD ["/fluentd/entrypoint.sh"] diff --git a/docker-image/v0.12/alpine-file/conf/fluent.conf b/docker-image/v0.12/alpine-file/conf/fluent.conf new file mode 100644 index 000000000..6b71ec1c4 --- /dev/null +++ b/docker-image/v0.12/alpine-file/conf/fluent.conf @@ -0,0 +1,15 @@ + +# AUTOMATICALLY GENERATED +# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/conf/fluent.conf.erb + +@include kubernetes.conf + + + @type file + path /var/log/fluent/ + time_slice_format %Y%m%d + time_slice_wait 10m + time_format %Y%m%dT%H%M%S%z + compress gzip + utc + diff --git a/docker-image/v0.12/alpine-file/conf/kubernetes.conf b/docker-image/v0.12/alpine-file/conf/kubernetes.conf new file mode 100644 index 000000000..09bd4c997 --- /dev/null +++ b/docker-image/v0.12/alpine-file/conf/kubernetes.conf @@ -0,0 +1,142 @@ +# AUTOMATICALLY GENERATED +# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/conf/kubernetes.conf.erb + + + type null + + + + type tail + path /var/log/containers/*.log + pos_file /var/log/fluentd-containers.log.pos + time_format %Y-%m-%dT%H:%M:%S.%NZ + tag kubernetes.* + format json + read_from_head true + + + + type tail + format /^(?