mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Make a Kubernetes specific version of an Elasticsearch Docker container
This commit is contained in:
parent
754a2a8305
commit
eda8a676f4
@ -12,7 +12,7 @@ desiredState:
|
||||
id: es-log-ingestion
|
||||
containers:
|
||||
- name: elasticsearch-logging
|
||||
image: dockerfile/elasticsearch
|
||||
image: kubernetes/elasticsearch:1.0
|
||||
ports:
|
||||
- name: es-port
|
||||
containerPort: 9200
|
||||
|
27
cluster/addons/fluentd-elasticsearch/es-image/Dockerfile
Normal file
27
cluster/addons/fluentd-elasticsearch/es-image/Dockerfile
Normal file
@ -0,0 +1,27 @@
|
||||
# A Dockerfile for creating an Elasticsearch instance that is designed
|
||||
# to work with Kubernetes logging. Inspired by the Dockerfile
|
||||
# dockerfile/elasticsearch
|
||||
|
||||
FROM dockerfile/java:openjdk-7-jre
|
||||
MAINTAINER Satnam Singh "satnam@google.com"
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y curl && \
|
||||
apt-get clean
|
||||
|
||||
RUN cd / && \
|
||||
curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz && \
|
||||
tar xf elasticsearch-1.4.4.tar.gz && \
|
||||
mv elasticsearch-1.4.4 /elasticsearch && \
|
||||
rm -rf elasticsearch-1.4.4.tar.gz
|
||||
|
||||
ADD elasticsearch.yml /elasticsearch/config/elasticsearch.yml
|
||||
|
||||
VOLUME ["/data"]
|
||||
WORKDIR /data
|
||||
CMD ["/elasticsearch/bin/elasticsearch"]
|
||||
|
||||
EXPOSE 9200
|
||||
EXPOSE 9300
|
9
cluster/addons/fluentd-elasticsearch/es-image/Makefile
Executable file
9
cluster/addons/fluentd-elasticsearch/es-image/Makefile
Executable file
@ -0,0 +1,9 @@
|
||||
.PHONY: build push
|
||||
|
||||
TAG = 1.0
|
||||
|
||||
build:
|
||||
docker build -t kubernetes/elasticsearch:$(TAG) .
|
||||
|
||||
push:
|
||||
docker push kubernetes/elasticsearch:$(TAG)
|
@ -0,0 +1,7 @@
|
||||
path:
|
||||
data: /data/data
|
||||
logs: /data/log
|
||||
plugins: /data/plugins
|
||||
work: /data/work
|
||||
cluster:
|
||||
name: kubernetes_logging
|
Loading…
Reference in New Issue
Block a user