enroll-nodes.asciidoc 911 B

12345678910111213141516171819202122232425262728293031
  1. [role="exclude"]
  2. . In a separate terminal from where {es} is running, navigate to the directory
  3. where you installed {es} and run the
  4. <<create-enrollment-token,`elasticsearch-create-enrollment-token`>> tool
  5. to generate an enrollment token for your new nodes.
  6. +
  7. ["source","sh",subs="attributes"]
  8. ----
  9. bin{slash}elasticsearch-create-enrollment-token -s node
  10. ----
  11. +
  12. Copy the enrollment token, which you'll use to enroll new nodes with
  13. your {es} cluster.
  14. . From the installation directory of your new node, start {es} and pass the
  15. enrollment token with the `--enrollment-token` parameter.
  16. +
  17. ["source","sh",subs="attributes"]
  18. ----
  19. bin{slash}elasticsearch --enrollment-token <enrollment-token>
  20. ----
  21. +
  22. {es} automatically generates certificates and keys in the following directory:
  23. +
  24. ["source","sh",subs="attributes"]
  25. ----
  26. config{slash}certs
  27. ----
  28. . Repeat the previous step for any new nodes that you want to enroll.