mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Update Fluentd to Cloud Logging image
This commit is contained in:
parent
507b202b23
commit
16f49f6d09
@ -2,7 +2,7 @@ version: v1beta2
|
|||||||
id: fluentd-to-gcp
|
id: fluentd-to-gcp
|
||||||
containers:
|
containers:
|
||||||
- name: fluentd-gcp-container
|
- name: fluentd-gcp-container
|
||||||
image: kubernetes/fluentd-gcp
|
image: kubernetes/fluentd-gcp:1.0
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: containers
|
- name: containers
|
||||||
mountPath: /var/lib/docker/containers
|
mountPath: /var/lib/docker/containers
|
||||||
|
@ -14,18 +14,9 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||||||
ENV OPTS_APT -y --force-yes --no-install-recommends
|
ENV OPTS_APT -y --force-yes --no-install-recommends
|
||||||
|
|
||||||
RUN apt-get -q update && \
|
RUN apt-get -q update && \
|
||||||
apt-get -y install apt-utils adduser && \
|
apt-get -y install curl && \
|
||||||
apt-get clean
|
apt-get clean && \
|
||||||
|
curl -s https://storage.googleapis.com/signals-agents/logging/google-fluentd-install.sh | sudo bash
|
||||||
ADD google-fluentd_1.0.0-0_amd64.deb /etc/google-fluentd/pkg/google-fluentd_1.0.0-0_amd64.deb
|
|
||||||
RUN dpkg -i /etc/google-fluentd/pkg/google-fluentd_1.0.0-0_amd64.deb
|
|
||||||
RUN /opt/google-fluentd/embedded/bin/gem install google-api-client
|
|
||||||
ADD out_google_cloud.rb /etc/google-fluentd/plugin/out_google_cloud.rb
|
|
||||||
ADD agent.conf /etc/google-fluentd/google-fluentd.conf
|
|
||||||
COPY catch-all-inputs.tar.gz /tmp/catch-all-inputs.tar.gz
|
|
||||||
RUN tar -C /etc/google-fluentd -zxf /tmp/catch-all-inputs.tar.gz
|
|
||||||
RUN sed -i~ -e "s/\(USER\|GROUP\)=google-fluentd/\1=root/;" /etc/init.d/google-fluentd
|
|
||||||
RUN sed -i~ -e 's/ --use-v1-config//' /etc/init.d/google-fluentd
|
|
||||||
|
|
||||||
# Copy the Fluentd configuration file for logging Docker container logs.
|
# Copy the Fluentd configuration file for logging Docker container logs.
|
||||||
COPY google-fluentd.conf /etc/google-fluentd/google-fluentd.conf
|
COPY google-fluentd.conf /etc/google-fluentd/google-fluentd.conf
|
||||||
|
@ -5,9 +5,12 @@
|
|||||||
|
|
||||||
.PHONY: build push
|
.PHONY: build push
|
||||||
|
|
||||||
|
|
||||||
|
TAG = 1.0
|
||||||
|
|
||||||
build:
|
build:
|
||||||
sudo docker build -t kubernetes/fluentd-gcp .
|
sudo docker build -t kubernetes/fluentd-gcp:$(TAG) .
|
||||||
|
|
||||||
push:
|
push:
|
||||||
sudo docker push kubernetes/fluentd-gcp
|
sudo docker push kubernetes/fluentd-gcp:$(TAG)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user