Hey there,
I am trying to run ES cluster of let's say 3 nodes.
I am using volume mount in docker to mount my self signed certificates.
And here is the command I am using:-
sudo docker run -it --privileged -p 9200:9200 -p 9300:9300 -e discovery.type=multi-node -e "cluster.name=my-elasticsearch-cluster" -e node.name="node-1" -e discovery.seed_hosts=["10.0.0.211","10.0.0.228","192.168.0.136"] -e network.host="0.0.0.0" -e node.roles="master" -e cluster.initial_master_nodes=["node-1","node-2","node-3"] -e network.publish_host="10.0.0.228" -e ELASTIC_PASSWORD=elastic -e xpack.ml.enabled=false -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -v /home/anubhav/certs:/usr/share/elasticsearch/config/certificates -e xpack.security.transport.ssl.key=/usr/share/elasticsearch/config/certificates/key.pem -e xpack.security.transport.ssl.certificate=/usr/share/elasticsearch/config/certificates/cert.pem -e xpack.security.transport.ssl.enabled=true -e xpack.security.transport.ssl.verification_mode=certificate -e xpack.security.transport.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/cacert.pem -e xpack.security.http.ssl.enabled=true -e xpack.http.ssl.verification_mode=certificate -e xpack.security.http.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/cacert.pem -e xpack.security.http.ssl.key=/usr/share/elasticsearch/config/certificates/key.pem -e xpack.security.http.ssl.certificate=/usr/share/elasticsearch/config/certificates/cert.pem -e xpack.security.http.ssl.client_authentication=none elasticsearch:8.7.0
I would like to know, what certs info do I need to pass in order to get the all nodes join the above master node?
Will I have to provide the same cert path in other node as well or only pointing to the IP would work or How is it?
Thanks in advance!