diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/telemetry.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/telemetry.md b/doc/telemetry.md index ee8d0dd..1e405a5 100644 --- a/doc/telemetry.md +++ b/doc/telemetry.md @@ -1,3 +1,27 @@ +# create elasticsearch folders on all nodes + +```bash +mkdir -p /mnt/ssd/telemetry/es_data/nodes +chown 1000 /mnt/ssd/telemetry/es_data/nodes +``` + +# generate ca and tls certs for elasticsearch cluster + +start a `bash` in an elasticsearch image, such as `docker.elastic.co/elasticsearch/elasticsearch:7.17.0`: `docker run -ti docker.elastic.co/elasticsearch/elasticsearch:7.17.0 bash` + +generate a ca and node certs: + +```bash +./bin/elasticsearch-certutil ca +./bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12 +``` + +copy `elastic-certificates.p12` to `/mnt/ssd/telemetry/es_data` in all nodes, and chown it: + +```bash +chown 1000 /mnt/ssd/telemetry/es_data/elastic-certificates.p12 +``` + # create elasticsearch passwords in elasticsearch container |