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
42fbf93f
Commit
42fbf93f
authored
Jan 10, 2017
by
thomasschickinger
Committed by
Thomas Schickinger
Jan 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add rule for detecting exceptions to fluentd config for GKE logging.
Bump version of gcp-fluentd container to 1.34
parent
ac857a5a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
7 deletions
+19
-7
fluentd-gcp-ds.yaml
cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml
+4
-4
Dockerfile
cluster/addons/fluentd-gcp/fluentd-gcp-image/Dockerfile
+1
-0
Makefile
cluster/addons/fluentd-gcp/fluentd-gcp-image/Makefile
+1
-1
fluent.conf
cluster/addons/fluentd-gcp/fluentd-gcp-image/fluent.conf
+12
-1
fluentd-gcp.yaml
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
+1
-1
No files found.
cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml
View file @
42fbf93f
...
@@ -2,23 +2,23 @@
...
@@ -2,23 +2,23 @@
apiVersion
:
extensions/v1beta1
apiVersion
:
extensions/v1beta1
kind
:
DaemonSet
kind
:
DaemonSet
metadata
:
metadata
:
name
:
fluentd-gcp-v1.3
3
name
:
fluentd-gcp-v1.3
4
namespace
:
kube-system
namespace
:
kube-system
labels
:
labels
:
k8s-app
:
fluentd-gcp
k8s-app
:
fluentd-gcp
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
version
:
v1.3
3
version
:
v1.3
4
spec
:
spec
:
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
k8s-app
:
fluentd-gcp
k8s-app
:
fluentd-gcp
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
version
:
v1.3
3
version
:
v1.3
4
spec
:
spec
:
containers
:
containers
:
-
name
:
fluentd-gcp
-
name
:
fluentd-gcp
image
:
gcr.io/google_containers/fluentd-gcp:1.3
3
image
:
gcr.io/google_containers/fluentd-gcp:1.3
4
# If fluentd consumes its own logs, the following situation may happen:
# 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 =>
# 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.
# tries to send this message to the server => fails to send a chunk and so on.
...
...
cluster/addons/fluentd-gcp/fluentd-gcp-image/Dockerfile
View file @
42fbf93f
...
@@ -36,6 +36,7 @@ RUN apt-get -qq update && \
...
@@ -36,6 +36,7 @@ RUN apt-get -qq update && \
td-agent-gem install --no-document fluent-plugin-record-reformer -v 0.8.2 && \
td-agent-gem install --no-document fluent-plugin-record-reformer -v 0.8.2 && \
td-agent-gem install --no-document fluent-plugin-systemd -v 0.0.5 && \
td-agent-gem install --no-document fluent-plugin-systemd -v 0.0.5 && \
td-agent-gem install --no-document fluent-plugin-google-cloud -v 0.5.2 && \
td-agent-gem install --no-document fluent-plugin-google-cloud -v 0.5.2 && \
td-agent-gem install --no-document fluent-plugin-detect-exceptions -v 0.0.4 && \
# Remove build tools
# Remove build tools
apt-get remove -y -qq gcc make && \
apt-get remove -y -qq gcc make && \
apt-get autoremove -y -qq && \
apt-get autoremove -y -qq && \
...
...
cluster/addons/fluentd-gcp/fluentd-gcp-image/Makefile
View file @
42fbf93f
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
.PHONY
:
build push
.PHONY
:
build push
PREFIX
=
gcr.io/google_containers
PREFIX
=
gcr.io/google_containers
TAG
=
1.3
3
TAG
=
1.3
4
build
:
build
:
docker build
--pull
-t
$(PREFIX)
/fluentd-gcp:
$(TAG)
.
docker build
--pull
-t
$(PREFIX)
/fluentd-gcp:
$(TAG)
.
...
...
cluster/addons/fluentd-gcp/fluentd-gcp-image/fluent.conf
View file @
42fbf93f
...
@@ -70,7 +70,18 @@
...
@@ -70,7 +70,18 @@
<
match
reform
.**>
<
match
reform
.**>
type
record_reformer
type
record_reformer
enable_ruby
true
enable_ruby
true
tag
kubernetes
.${
tag_suffix
[
4
].
split
(
'-'
)[
0
..-
2
].
join
(
'-'
)}
tag
raw
.
kubernetes
.${
tag_suffix
[
4
].
split
(
'-'
)[
0
..-
2
].
join
(
'-'
)}
</
match
>
# Detect exceptions in the log output and forward them as one log entry.
<
match
raw
.
kubernetes
.**>
type
detect_exceptions
remove_tag_prefix
raw
message
log
stream
stream
multiline_flush_interval
5
max_bytes
500000
max_lines
1000
</
match
>
</
match
>
# Example:
# Example:
...
...
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
View file @
42fbf93f
...
@@ -10,7 +10,7 @@ spec:
...
@@ -10,7 +10,7 @@ spec:
dnsPolicy
:
Default
dnsPolicy
:
Default
containers
:
containers
:
-
name
:
fluentd-cloud-logging
-
name
:
fluentd-cloud-logging
image
:
gcr.io/google_containers/fluentd-gcp:1.3
3
image
:
gcr.io/google_containers/fluentd-gcp:1.3
4
# If fluentd consumes its own logs, the following situation may happen:
# 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 =>
# 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.
# tries to send this message to the server => fails to send a chunk and so on.
...
...
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