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
8ab2e9c6
Commit
8ab2e9c6
authored
Jan 06, 2015
by
Satnam Singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use DNS for Elasticsearch
parent
af2ded7b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
45 deletions
+12
-45
fluentd-es.manifest
cluster/saltbase/salt/fluentd-es/fluentd-es.manifest
+0
-7
Dockerfile
contrib/logging/fluentd-es-image/Dockerfile
+2
-7
run.sh
contrib/logging/fluentd-es-image/run.sh
+0
-29
td-agent.conf
contrib/logging/fluentd-es-image/td-agent.conf
+10
-2
No files found.
cluster/saltbase/salt/fluentd-es/fluentd-es.manifest
View file @
8ab2e9c6
...
@@ -6,9 +6,6 @@ containers:
...
@@ -6,9 +6,6 @@ containers:
volumeMounts:
volumeMounts:
- name: containers
- name: containers
mountPath: /var/lib/docker/containers
mountPath: /var/lib/docker/containers
- name: hosts
mountPath: /outerhost
readOnly: true
- name: varlog
- name: varlog
mountPath: /varlog
mountPath: /varlog
volumes:
volumes:
...
@@ -20,7 +17,3 @@ volumes:
...
@@ -20,7 +17,3 @@ volumes:
source:
source:
hostDir:
hostDir:
path: /var/log
path: /var/log
- name: hosts
source:
hostDir:
path: /etc/hosts
contrib/logging/fluentd-es-image/Dockerfile
View file @
8ab2e9c6
...
@@ -33,10 +33,5 @@ RUN /usr/sbin/td-agent-gem install fluent-plugin-elasticsearch
...
@@ -33,10 +33,5 @@ RUN /usr/sbin/td-agent-gem install fluent-plugin-elasticsearch
# Copy the Fluentd configuration file.
# Copy the Fluentd configuration file.
COPY
td-agent.conf /etc/td-agent/td-agent.conf
COPY
td-agent.conf /etc/td-agent/td-agent.conf
# Copy a script that determines the name of the host machine
# Run the Fluentd service.
# and then patch the Fluentd configuration files and then
CMD
/usr/sbin/td-agent -qq > /var/log/td-agent/td-agent.log
# run Fluentd in the foreground.
ADD
run.sh /run.sh
# Always run the this setup script.
ENTRYPOINT
["/run.sh"]
contrib/logging/fluentd-es-image/run.sh
deleted
100755 → 0
View file @
af2ded7b
#!/bin/bash
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# WARNING! HORRIBLE HACK! We expect /outerhost to be mapped to
# the enclosing /etc/host file so we can determine the name of
# the host machine (super fragile). This is a temporary hack until
# service IPs are done.
OUTER_HOST
=
`
tail
-n
1 /outerhost |
awk
'{print $3}'
`
# WARNING! HORRIBLE HACK! We expect /outerhost to be mapped to
# the enclosing /etc/host file so we can determine the name of
# the host machine (super fragile). This is a temporary hack until
# service IPs are done.
# Adjust the name of the host machine for %ES_HOST%. HACK!
sed
-i
-e
"s/
\%
ES_HOST
\%
/
${
OUTER_HOST
}
/"
/etc/td-agent/td-agent.conf
/usr/sbin/td-agent
-qq
"
$@
"
contrib/logging/fluentd-es-image/td-agent.conf
View file @
8ab2e9c6
...
@@ -47,10 +47,14 @@
...
@@ -47,10 +47,14 @@
type
elasticsearch
type
elasticsearch
log_level
info
log_level
info
include_tag_key
true
include_tag_key
true
host
%
ES_HOST
%
host
elasticsearch
.
default
port
9200
port
9200
logstash_format
true
logstash_format
true
flush_interval
5
s
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
>
</
match
>
<
source
>
<
source
>
...
@@ -65,8 +69,12 @@
...
@@ -65,8 +69,12 @@
type
elasticsearch
type
elasticsearch
log_level
info
log_level
info
include_tag_key
true
include_tag_key
true
host
%
ES_HOST
%
host
elasticsearch
.
default
port
9200
port
9200
logstash_format
true
logstash_format
true
flush_interval
5
s
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
>
</
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