Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 2.02 KB

README.md

File metadata and controls

25 lines (15 loc) · 2.02 KB

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.