This project focuses on running a fully preconfigured, dockerized version of ElasticSearch on various cloud providers. Current supported platforms are GCE , but AWS is in the works.
The custom configuration includes:
- SearchGuard (Security, SSL transport/http layer, User Role Management)
- Xpack (Monitoring)
- GCE Discovery
- GCS Repository
6.1.0 -> 6.2.4
Configure docker
to be able to push gcr.io
with gcloud auth configure-docker
Create a gce.env
file. (there is a gce.env.sample
as an example) Make sure you have an environment variable PROJECT_ID
defined with your google project ID.
Make sure you have gcloud
installed and configured. Look up the supported build options in the Makefile
The default
target would build the docker image, push it to your gcr.io
and create a cluster in your project.
The build process will create the elastic.env
which will have all the user passwords and environment variables provided to the cluster.
Environment Variables (make sure to include them into your gce.env file if you want to change the default values)
Log level from witch elasticsearch echoes logs.
ES cluster name.
This setting tells Elasticsearch to not elect a master unless there are enough master-eligible nodes available. Only then will an election take place.
We recommend to set this variable to (number of nodes / 2) + 1
All the passwords are autogenerated when the template is created
password for built-in user elastic.
password for built-in user kibana.
password for built-in user logstash.
password for built-in user beats.
CA certificate passphrase.
Truststore(public keys storage) password.
Keystore(private key storage) password.
- If true then https is bound on 9200
- If false then http is bound on 9200
Configuration file is located in /config/elasticsearch.yml
You can provide your own passwords instance of the onces being generated. Set the env variable GENERATE_PASSWORDS
to false
and provide a /src/passwords file ( look at src/passwords.example )
If you have any problems with or questions about this image, please ask for help through a GitHub issue.