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
a18cdac6
Commit
a18cdac6
authored
Oct 30, 2014
by
Brendan Burns
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2014 from satnam6502/fluentd-ek-colo
Fluentd example with Elasticsearch and Kibana in the same pod
parents
bea70f42
44e4c8d7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
105 additions
and
0 deletions
+105
-0
Makefile
contrib/logging/fluentd-ek-colo/Makefile
+45
-0
es-kibana-pod.yml
contrib/logging/fluentd-ek-colo/es-kibana-pod.yml
+29
-0
es-service.yml
contrib/logging/fluentd-ek-colo/es-service.yml
+8
-0
kibana-service.yml
contrib/logging/fluentd-ek-colo/kibana-service.yml
+8
-0
synthetic_0_25lps.yml
contrib/logging/fluentd-ek-colo/synthetic_0_25lps.yml
+15
-0
No files found.
contrib/logging/fluentd-ek-colo/Makefile
0 → 100644
View file @
a18cdac6
# Makefile for scenario where the Elasticsearch and Kibana containers
# have to be co-located inside the same pod.
KUBECTL
=
kubectl.sh
up
:
logger-up es-kibana-up
down
:
logger-down es-kibana-down
es-kibana-up
:
-
${
KUBECTL
}
create
-f
es-kibana-pod.yml
-
${
KUBECTL
}
create
-f
es-service.yml
-
${
KUBECTL
}
create
-f
kibana-service.yml
es-kibana-down
:
-
${
KUBECTL
}
delete pods elasticsearch-kibana-pod
-
${
KUBECTL
}
delete service kibana-colo
-
${
KUBECTL
}
delete service elasticsearch-colo
update
:
-
${
KUBECTL
}
delete pods elasticsearch-kibana-pod
-
${
KUBECTL
}
create
-f
es-kibana-pod.yml
logger-up
:
-
${
KUBECTL
}
create
-f
synthetic_0_25lps.yml
logger-down
:
-
${
KUBECTL
}
delete pods synthetic-logger-0.25lps-pod
get
:
${
KUBECTL
}
get pods
${
KUBECTL
}
get services
net
:
gcutil getforwardingrule elasticsearch-colo
gcutil getforwardingrule kibana-colo
firewall
:
gcutil addfirewall
--allowed
=
tcp:5601,tcp:9200,tcp:9300
--target_tags
=
kubernetes-minion kubernetes-elk-example
rmfirewall
:
gcutil deletefirewall
-f
kubernetes-elk-example
contrib/logging/fluentd-ek-colo/es-kibana-pod.yml
0 → 100644
View file @
a18cdac6
apiVersion
:
v1beta1
kind
:
Pod
id
:
elasticsearch-kibana-pod
desiredState
:
manifest
:
version
:
v1beta1
id
:
es
containers
:
-
name
:
elasticsearch
image
:
dockerfile/elasticsearch
ports
:
-
name
:
es-port
containerPort
:
9200
-
name
:
es-transport-port
containerPort
:
9300
volumeMounts
:
-
name
:
es-persistent-storage
mountPath
:
/data
volumes
:
-
name
:
es-persistent-storage
source
:
emptyDir
:
{}
-
name
:
kibana-image
image
:
kubernetes/kibana
ports
:
-
name
:
kibana-port
containerPort
:
80
labels
:
app
:
elasticsearch-kibana
contrib/logging/fluentd-ek-colo/es-service.yml
0 → 100644
View file @
a18cdac6
apiVersion
:
v1beta1
kind
:
Service
id
:
elasticsearch-colo
containerPort
:
es-port
port
:
9200
selector
:
app
:
elasticsearch-kibana
createExternalLoadBalancer
:
true
contrib/logging/fluentd-ek-colo/kibana-service.yml
0 → 100644
View file @
a18cdac6
apiVersion
:
v1beta1
kind
:
Service
id
:
kibana-colo
containerPort
:
kibana-port
port
:
5601
selector
:
app
:
elasticsearch-kibana
createExternalLoadBalancer
:
true
contrib/logging/fluentd-ek-colo/synthetic_0_25lps.yml
0 → 100644
View file @
a18cdac6
apiVersion
:
v1beta1
kind
:
Pod
id
:
synthetic-logger-0.25lps-pod
desiredState
:
manifest
:
version
:
v1beta1
id
:
synth-logger-0.25lps
containers
:
-
name
:
synth-lgr
image
:
ubuntu:14.04
command
:
[
"
bash"
,
"
-c"
,
"
i=
\"
0
\"
;
while
true;
do
echo
-n
\"
`hostname`:
$i:
\"
;
date
--rfc-3339
ns;
sleep
4;
i=$[$i+1];
done"
]
labels
:
name
:
synth-logging-source
\ No newline at end of file
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