Skip to content

WhatsMyCut/docker-elasticsearch-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-elasticsearch-kubernetes

Ready to use, lean Elasticsearch Docker image ready for using within a Kubernetes cluster.

Docker Repository on Quay.io

Current software

  • OpenJDK JRE 8u151
  • Elasticsearch 6.0.0

Run

See pires/kubernetes-elasticsearch-cluster for instructions on how to run, scale and use Elasticsearch on Kubernetes.

Environment variables

This image can be configured by means of environment variables, that one can set on a Deployment.

Besides the inherited ones, this container image provides the following:

  • DISCOVERY_SERVICE - the service to be queried for through DNS (default = elasticsearch-discovery).
  • MEMORY_LOCK - memory locking control defaults to false as Kubernetes requires swap to be disabled.
  • MY_MEM_LIMIT, MY_MEM_REQUEST - These should be set to the container's Kubernetes memory limit and memory request values using the Downward API . This allows the image to automatically set the JVM heap size to a value relative to the containers limits. By default it will configure the JVM heap size to 50% of the pod's memory limit, or memory request if limit is not set. It will only set the JVM heapsize if the -Xmx flag is not already passed via $JVM_JAVA_OPTS.
  • OVERWRITE_JVM_HEAPSIZE - Set to true to ensure heapsize is set based on MY_MEM_LIMIT or MY_MEM_REQUEST rather than using the default in the docker image.

About

Customized Docker build for Elasticsearch on a "bare metal" Kubernetes Cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages