Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
19c88643
Commit
19c88643
authored
Dec 15, 2014
by
Brendan Burns
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2923 from satnam6502/kubelet-log
Collect Kubelet logs with Fluentd->(Elasticsearch|Cloud Logging)
parents
e5ae689b
b4fcdd7e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
0 deletions
+49
-0
fluentd-es.manifest
cluster/saltbase/salt/fluentd-es/fluentd-es.manifest
+7
-0
fluentd-gcp.manifest
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.manifest
+6
-0
td-agent.conf
contrib/logging/fluentd-es-image/td-agent.conf
+18
-0
google-fluentd.conf
contrib/logging/fluentd-gcp-image/google-fluentd.conf
+18
-0
No files found.
cluster/saltbase/salt/fluentd-es/fluentd-es.manifest
View file @
19c88643
...
...
@@ -9,11 +9,18 @@ containers:
- name: hosts
mountPath: /outerhost
readOnly: true
- name: varlog
mountPath: /varlog
volumes:
volumes:
- name: containers
source:
hostDir:
path: /var/lib/docker/containers
- name: varlog
source:
hostDir:
path: /var/log
- name: hosts
source:
hostDir:
...
...
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.manifest
View file @
19c88643
...
...
@@ -6,8 +6,14 @@ containers:
volumeMounts:
- name: containers
mountPath: /var/lib/docker/containers
- name: varlog
mountPath: /varlog
volumes:
- name: containers
source:
hostDir:
path: /var/lib/docker/containers
- name: varlog
source:
hostDir:
path: /var/log
contrib/logging/fluentd-es-image/td-agent.conf
View file @
19c88643
...
...
@@ -52,3 +52,21 @@
logstash_format
true
flush_interval
5
s
</
match
>
<
source
>
type
tail
format
none
path
/
varlog
/
kubelet
.
log
pos_file
/
varlog
/
kubelet
.
log
.
pos
tag
kubelet
</
source
>
<
match
kubelet
>
type
elasticsearch
log_level
info
include_tag_key
true
host
%
ES_HOST
%
port
9200
logstash_format
true
flush_interval
5
s
</
match
>
contrib/logging/fluentd-gcp-image/google-fluentd.conf
View file @
19c88643
...
...
@@ -30,3 +30,21 @@
# Disable the limit on the number of retries (retry forever).
disable_retry_limit
</
match
>
<
source
>
type
tail
format
none
time_key
time
path
/
varlog
/
kubelet
.
log
pos_file
/
varlog
/
kubelet
.
log
.
pos
tag
kubelet
</
source
>
<
match
kubelet
>
type
google_cloud
flush_interval
5
s
# Never wait longer than 5 minutes between retries.
max_retry_wait
300
# Disable the limit on the number of retries (retry forever).
disable_retry_limit
</
match
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment