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
66ff3c13
Commit
66ff3c13
authored
Sep 01, 2015
by
Alex Robinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13229 from a-robinson/fluent
Clean up the fluentd images to make them more debuggable
parents
0a062c5b
d02dc640
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
12 deletions
+15
-12
Dockerfile
.../addons/fluentd-elasticsearch/fluentd-es-image/Dockerfile
+1
-1
Makefile
...er/addons/fluentd-elasticsearch/fluentd-es-image/Makefile
+1
-1
Dockerfile
cluster/addons/fluentd-gcp/fluentd-gcp-image/Dockerfile
+7
-4
Makefile
cluster/addons/fluentd-gcp/fluentd-gcp-image/Makefile
+1
-1
fluentd-es.yaml
cluster/saltbase/salt/fluentd-es/fluentd-es.yaml
+1
-1
fluentd-gcp.yaml
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
+2
-2
logging.md
docs/getting-started-guides/logging.md
+2
-2
No files found.
cluster/addons/fluentd-elasticsearch/fluentd-es-image/Dockerfile
View file @
66ff3c13
...
@@ -40,4 +40,4 @@ RUN /usr/sbin/td-agent-gem install fluent-plugin-record-reformer
...
@@ -40,4 +40,4 @@ RUN /usr/sbin/td-agent-gem install fluent-plugin-record-reformer
COPY
td-agent.conf /etc/td-agent/td-agent.conf
COPY
td-agent.conf /etc/td-agent/td-agent.conf
# Run the Fluentd service.
# Run the Fluentd service.
CMD
/usr/sbin/td-agent "$FLUENTD_ARGS"
> /var/log/td-agent/td-agent.log
CMD
/usr/sbin/td-agent "$FLUENTD_ARGS"
cluster/addons/fluentd-elasticsearch/fluentd-es-image/Makefile
View file @
66ff3c13
.PHONY
:
build push
.PHONY
:
build push
IMAGE
=
fluentd-elasticsearch
IMAGE
=
fluentd-elasticsearch
TAG
=
1.
9
TAG
=
1.
10
build
:
build
:
docker build
-t
gcr.io/google_containers/
$(IMAGE)
:
$(TAG)
.
docker build
-t
gcr.io/google_containers/
$(IMAGE)
:
$(TAG)
.
...
...
cluster/addons/fluentd-gcp/fluentd-gcp-image/Dockerfile
View file @
66ff3c13
...
@@ -17,11 +17,14 @@ RUN apt-get -q update && \
...
@@ -17,11 +17,14 @@ RUN apt-get -q update && \
apt-get clean
&&
\
apt-get clean
&&
\
curl
-s
https://storage.googleapis.com/signals-agents/logging/google-fluentd-install.sh |
sudo
bash
curl
-s
https://storage.googleapis.com/signals-agents/logging/google-fluentd-install.sh |
sudo
bash
# Copy the Fluentd configuration file for logging Docker container logs.
COPY
google-fluentd.conf /etc/google-fluentd/google-fluentd.conf
# Install the record reformer plugin.
# Install the record reformer plugin.
RUN
/usr/sbin/google-fluentd-gem
install
fluent-plugin-record-reformer
RUN
/usr/sbin/google-fluentd-gem
install
fluent-plugin-record-reformer
# Remove the misleading log file that gets generated when the agent is installed
RUN
rm
-rf
/var/log/google-fluentd
# Copy the Fluentd configuration file for logging Docker container logs.
COPY
google-fluentd.conf /etc/google-fluentd/google-fluentd.conf
# Start Fluentd to pick up our config that watches Docker container logs.
# Start Fluentd to pick up our config that watches Docker container logs.
CMD
/usr/sbin/google-fluentd "$FLUENTD_ARGS"
> /var/log/google-fluentd.log
CMD
/usr/sbin/google-fluentd "$FLUENTD_ARGS"
cluster/addons/fluentd-gcp/fluentd-gcp-image/Makefile
View file @
66ff3c13
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
.PHONY
:
kbuild kpush
.PHONY
:
kbuild kpush
TAG
=
1.1
1
TAG
=
1.1
2
# 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.
...
...
cluster/saltbase/salt/fluentd-es/fluentd-es.yaml
View file @
66ff3c13
...
@@ -12,7 +12,7 @@ spec:
...
@@ -12,7 +12,7 @@ spec:
cpu
:
100m
cpu
:
100m
env
:
env
:
-
name
:
"
FLUENTD_ARGS"
-
name
:
"
FLUENTD_ARGS"
value
:
"
-q
q
"
value
:
"
-q"
volumeMounts
:
volumeMounts
:
-
name
:
varlog
-
name
:
varlog
mountPath
:
/varlog
mountPath
:
/varlog
...
...
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
View file @
66ff3c13
...
@@ -6,14 +6,14 @@ metadata:
...
@@ -6,14 +6,14 @@ metadata:
spec
:
spec
:
containers
:
containers
:
-
name
:
fluentd-cloud-logging
-
name
:
fluentd-cloud-logging
image
:
gcr.io/google_containers/fluentd-gcp:1.1
1
image
:
gcr.io/google_containers/fluentd-gcp:1.1
2
resources
:
resources
:
limits
:
limits
:
cpu
:
100m
cpu
:
100m
memory
:
200Mi
memory
:
200Mi
env
:
env
:
-
name
:
FLUENTD_ARGS
-
name
:
FLUENTD_ARGS
value
:
-q
q
value
:
-q
volumeMounts
:
volumeMounts
:
-
name
:
varlog
-
name
:
varlog
mountPath
:
/varlog
mountPath
:
/varlog
...
...
docs/getting-started-guides/logging.md
View file @
66ff3c13
...
@@ -169,14 +169,14 @@ metadata:
...
@@ -169,14 +169,14 @@ metadata:
spec
:
spec
:
containers
:
containers
:
-
name
:
fluentd-cloud-logging
-
name
:
fluentd-cloud-logging
image
:
gcr.io/google_containers/fluentd-gcp:1.1
1
image
:
gcr.io/google_containers/fluentd-gcp:1.1
2
resources
:
resources
:
limits
:
limits
:
cpu
:
100m
cpu
:
100m
memory
:
200Mi
memory
:
200Mi
env
:
env
:
-
name
:
FLUENTD_ARGS
-
name
:
FLUENTD_ARGS
value
:
-q
q
value
:
-q
volumeMounts
:
volumeMounts
:
-
name
:
varlog
-
name
:
varlog
mountPath
:
/varlog
mountPath
:
/varlog
...
...
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