mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Adjust POS file for Fluentd to Cloud Logging
This commit is contained in:
parent
879a39bcc4
commit
0212e68e91
@ -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:1.1
|
image: kubernetes/fluentd-gcp:1.2
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: containers
|
- name: containers
|
||||||
mountPath: /var/lib/docker/containers
|
mountPath: /var/lib/docker/containers
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
.PHONY: build push
|
.PHONY: build push
|
||||||
|
|
||||||
|
|
||||||
TAG = 1.1
|
TAG = 1.2
|
||||||
|
|
||||||
build:
|
build:
|
||||||
sudo docker build -t kubernetes/fluentd-gcp:$(TAG) .
|
sudo docker build -t kubernetes/fluentd-gcp:$(TAG) .
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
format none
|
format none
|
||||||
time_key time
|
time_key time
|
||||||
path /var/lib/docker/containers/*/*-json.log
|
path /var/lib/docker/containers/*/*-json.log
|
||||||
pos_file /var/lib/docker/containers/containers.log.pos
|
pos_file /var/lib/docker/containers/gcp-containers.log.pos
|
||||||
time_format %Y-%m-%dT%H:%M:%S
|
time_format %Y-%m-%dT%H:%M:%S
|
||||||
tag docker.*
|
tag docker.*
|
||||||
read_from_head true
|
read_from_head true
|
||||||
@ -37,7 +37,7 @@
|
|||||||
format none
|
format none
|
||||||
time_key time
|
time_key time
|
||||||
path /varlog/kubelet.log
|
path /varlog/kubelet.log
|
||||||
pos_file /varlog/kubelet.log.pos
|
pos_file /varlog/gcp-kubelet.log.pos
|
||||||
tag kubelet
|
tag kubelet
|
||||||
</source>
|
</source>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user