mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Let fluentd-es log by not redirecting to a file within the container
and only using -q (warning logs only) rather than -qq (error logs only).
This commit is contained in:
parent
b3154a7815
commit
d02dc64036
@ -40,4 +40,4 @@ RUN /usr/sbin/td-agent-gem install fluent-plugin-record-reformer
|
|||||||
COPY td-agent.conf /etc/td-agent/td-agent.conf
|
COPY td-agent.conf /etc/td-agent/td-agent.conf
|
||||||
|
|
||||||
# Run the Fluentd service.
|
# Run the Fluentd service.
|
||||||
CMD /usr/sbin/td-agent "$FLUENTD_ARGS" > /var/log/td-agent/td-agent.log
|
CMD /usr/sbin/td-agent "$FLUENTD_ARGS"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.PHONY: build push
|
.PHONY: build push
|
||||||
|
|
||||||
IMAGE = fluentd-elasticsearch
|
IMAGE = fluentd-elasticsearch
|
||||||
TAG = 1.9
|
TAG = 1.10
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .
|
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .
|
||||||
|
@ -12,7 +12,7 @@ spec:
|
|||||||
cpu: 100m
|
cpu: 100m
|
||||||
env:
|
env:
|
||||||
- name: "FLUENTD_ARGS"
|
- name: "FLUENTD_ARGS"
|
||||||
value: "-qq"
|
value: "-q"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: varlog
|
- name: varlog
|
||||||
mountPath: /varlog
|
mountPath: /varlog
|
||||||
|
Loading…
Reference in New Issue
Block a user