mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +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
|
||||
containers:
|
||||
- name: fluentd-gcp-container
|
||||
image: kubernetes/fluentd-gcp:1.1
|
||||
image: kubernetes/fluentd-gcp:1.2
|
||||
volumeMounts:
|
||||
- name: containers
|
||||
mountPath: /var/lib/docker/containers
|
||||
|
@ -6,7 +6,7 @@
|
||||
.PHONY: build push
|
||||
|
||||
|
||||
TAG = 1.1
|
||||
TAG = 1.2
|
||||
|
||||
build:
|
||||
sudo docker build -t kubernetes/fluentd-gcp:$(TAG) .
|
||||
|
@ -17,7 +17,7 @@
|
||||
format none
|
||||
time_key time
|
||||
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
|
||||
tag docker.*
|
||||
read_from_head true
|
||||
@ -37,7 +37,7 @@
|
||||
format none
|
||||
time_key time
|
||||
path /varlog/kubelet.log
|
||||
pos_file /varlog/kubelet.log.pos
|
||||
pos_file /varlog/gcp-kubelet.log.pos
|
||||
tag kubelet
|
||||
</source>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user