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
e52c3e77
Commit
e52c3e77
authored
Dec 06, 2016
by
Mik Vyatskov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid exporting fluentd-gcp own logs
parent
81b36440
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
Makefile
cluster/addons/fluentd-gcp/fluentd-gcp-image/Makefile
+1
-1
run.sh
cluster/addons/fluentd-gcp/fluentd-gcp-image/run.sh
+1
-1
log-dump.sh
cluster/log-dump.sh
+2
-2
fluentd-gcp.yaml
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
+10
-4
No files found.
cluster/addons/fluentd-gcp/fluentd-gcp-image/Makefile
View file @
e52c3e77
...
...
@@ -26,7 +26,7 @@
.PHONY
:
build push
PREFIX
=
gcr.io/google_containers
TAG
=
1.
29
TAG
=
1.
30
build
:
docker build
-t
$(PREFIX)
/fluentd-gcp:
$(TAG)
.
...
...
cluster/addons/fluentd-gcp/fluentd-gcp-image/run.sh
View file @
e52c3e77
...
...
@@ -26,4 +26,4 @@ fi
LD_PRELOAD
=
/opt/td-agent/embedded/lib/libjemalloc.so
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR
=
0.9
/usr/sbin/td-agent
"
$@
"
/usr/sbin/td-agent
$@
cluster/log-dump.sh
View file @
e52c3e77
...
...
@@ -36,8 +36,8 @@ fi
readonly
master_ssh_supported_providers
=
"gce aws kubemark"
readonly
node_ssh_supported_providers
=
"gce gke aws"
readonly
master_logfiles
=
"kube-apiserver kube-scheduler rescheduler kube-controller-manager etcd glbc cluster-autoscaler kube-addon-manager"
readonly
node_logfiles
=
"kube-proxy"
readonly
master_logfiles
=
"kube-apiserver kube-scheduler rescheduler kube-controller-manager etcd glbc cluster-autoscaler kube-addon-manager
fluentd
"
readonly
node_logfiles
=
"kube-proxy
fluentd
"
readonly
aws_logfiles
=
"cloud-init-output"
readonly
gce_logfiles
=
"startupscript"
readonly
kern_logfile
=
"kern"
...
...
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
View file @
e52c3e77
...
...
@@ -11,7 +11,16 @@ spec:
dnsPolicy
:
Default
containers
:
-
name
:
fluentd-cloud-logging
image
:
gcr.io/google_containers/fluentd-gcp:1.29
image
:
gcr.io/google_containers/fluentd-gcp:1.30
# If fluentd consumes its own logs, the following situation may happen:
# fluentd fails to send a chunk to the server => writes it to the log =>
# tries to send this message to the server => fails to send a chunk and so on.
# Writing to a file, which is not exported to the back-end prevents it.
# It also allows to increase the fluentd verbosity by default.
command
:
-
'
/bin/sh'
-
'
-c'
-
'
/run.sh
$FLUENTD_ARGS
2>&1
>>/var/log/fluentd.log'
resources
:
limits
:
memory
:
200Mi
...
...
@@ -20,9 +29,6 @@ spec:
# requests of other per-node add-ons (e.g. kube-proxy).
cpu
:
100m
memory
:
200Mi
env
:
-
name
:
FLUENTD_ARGS
value
:
-q
volumeMounts
:
-
name
:
varlog
mountPath
:
/var/log
...
...
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