mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 04:52:08 +00:00
Merge pull request #12240 from a-robinson/logs
Also collect the monit and salt logs in our fluentd configs
This commit is contained in:
commit
714b39f025
@ -1,7 +1,7 @@
|
|||||||
.PHONY: build push
|
.PHONY: build push
|
||||||
|
|
||||||
IMAGE = fluentd-elasticsearch
|
IMAGE = fluentd-elasticsearch
|
||||||
TAG = 1.7
|
TAG = 1.8
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .
|
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .
|
||||||
|
@ -78,6 +78,22 @@
|
|||||||
tag kubernetes.${tag_suffix[3].split('-')[0..-2].join('-')}
|
tag kubernetes.${tag_suffix[3].split('-')[0..-2].join('-')}
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
|
<source>
|
||||||
|
type tail
|
||||||
|
format none
|
||||||
|
path /varlog/monit.log
|
||||||
|
pos_file /varlog/gcp-monit.log.pos
|
||||||
|
tag monit
|
||||||
|
</source>
|
||||||
|
|
||||||
|
<source>
|
||||||
|
type tail
|
||||||
|
format none
|
||||||
|
path /varlog/salt/minion
|
||||||
|
pos_file /varlog/gcp-salt.pos
|
||||||
|
tag salt
|
||||||
|
</source>
|
||||||
|
|
||||||
<source>
|
<source>
|
||||||
type tail
|
type tail
|
||||||
format none
|
format none
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
.PHONY: kbuild kpush
|
.PHONY: kbuild kpush
|
||||||
|
|
||||||
TAG = 1.10
|
TAG = 1.11
|
||||||
|
|
||||||
# Rules for building the test image for deployment to Dockerhub with user kubernetes.
|
# Rules for building the test image for deployment to Dockerhub with user kubernetes.
|
||||||
|
|
||||||
|
@ -63,6 +63,22 @@
|
|||||||
tag kubernetes.${tag_suffix[3].split('-')[0..-2].join('-')}
|
tag kubernetes.${tag_suffix[3].split('-')[0..-2].join('-')}
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
|
<source>
|
||||||
|
type tail
|
||||||
|
format none
|
||||||
|
path /varlog/monit.log
|
||||||
|
pos_file /varlog/gcp-monit.log.pos
|
||||||
|
tag monit
|
||||||
|
</source>
|
||||||
|
|
||||||
|
<source>
|
||||||
|
type tail
|
||||||
|
format none
|
||||||
|
path /varlog/salt/minion
|
||||||
|
pos_file /varlog/gcp-salt.pos
|
||||||
|
tag salt
|
||||||
|
</source>
|
||||||
|
|
||||||
<source>
|
<source>
|
||||||
type tail
|
type tail
|
||||||
format none
|
format none
|
||||||
|
@ -6,7 +6,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: fluentd-elasticsearch
|
- name: fluentd-elasticsearch
|
||||||
image: gcr.io/google_containers/fluentd-elasticsearch:1.7
|
image: gcr.io/google_containers/fluentd-elasticsearch:1.8
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
@ -6,7 +6,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: fluentd-cloud-logging
|
- name: fluentd-cloud-logging
|
||||||
image: gcr.io/google_containers/fluentd-gcp:1.10
|
image: gcr.io/google_containers/fluentd-gcp:1.11
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
@ -169,7 +169,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: fluentd-cloud-logging
|
- name: fluentd-cloud-logging
|
||||||
image: gcr.io/google_containers/fluentd-gcp:1.10
|
image: gcr.io/google_containers/fluentd-gcp:1.11
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
Loading…
Reference in New Issue
Block a user