Go to file
Daniel Berteaud a36c1ac6b7 Use exporter's TLS support and remove metrics_proxy 2024-04-22 20:43:54 +02:00
consul/config Cleanup 2024-02-01 14:32:09 +01:00
example Cleanup 2024-04-22 14:22:11 +02:00
images Update to 8.13.0 2024-03-28 09:29:45 +01:00
init Rename vault-pki to elasticsearch-vault-pki 2024-04-02 13:15:57 +02:00
prep.d Use base_images so we can build 7 and 8 ES images 2024-03-14 16:43:13 +01:00
templates Cleanup 2024-02-01 14:32:09 +01:00
vault/policies New bundle for an Elasticsearch cluster 2024-01-25 14:52:55 +01:00
README.md Add support for Traefik 2024-01-25 16:45:30 +01:00
bundles.yml New bundle for an Elasticsearch cluster 2024-01-25 14:52:55 +01:00
elasticsearch.nomad.hcl Use exporter's TLS support and remove metrics_proxy 2024-04-22 20:43:54 +02:00
variables.yml Use exporter's TLS support and remove metrics_proxy 2024-04-22 20:43:54 +02:00

README.md

elasticsearch

Nomad job template for Elasticsearch cluster

Setup initial password

A random password is generated for the elastic system account (in vault, kv/service/elasticsearch, key elastic_pwd) but is not used automaticaly. You must setup passwords with

elasticsearch-setup-passwords interactive

Configure replicas for indices

Once elastic passwords are OK, you can configure indices to have the desired number of replicas

for INDEX in inventory stock purchase-requests; do
  curl --user 'elastic:XXX' \
    -X PUT \
    -H 'Content-Type: application/json' \
    http://localhost:9200/${INDEX}/_settings \
    -d '{ "index.number_of_replicas" : 2 }'
done