Would you please help us with this issue? The new nodes could not join the cluster since we can not create a token for nodes. The http.p12 is already created and contained a PrivateKey but the error is still there. Either for genetrating tokens for Kibana or nodes.
I have created a CA, and then created individual node .p12 files, and distributed them to the nodes. The certificates are working, as I can bootstrap a cluster and add masters to a total of 3.
When I come to generate a token to enrol a Kibana or node, I get the same error message as above.
Yes exactly same goes for me and the joining token did not generated. Did you find any other solutions for join new nodes to cluster? At the moment I have a single node cluster that I want to add two more nodes to it.
Yes, I have given up on using the enrolment tokens as the process seems to depend on using an auto-generated CA and distributing the key for that CA to all nodes in the cluster, which seems somewhat insecure.
Instead, I manually generated the certificates for my cluster, distributed them, and bootstrapped it. To get three master nodes online, one must configure the cluster.initial_master_nodes value in your elasticsearch.yml or environment.
Once you have those masters up, you can comment out that line in the config.
Adding non-master nodes is done by just pointing new nodes at the masters through discovery.seed_hosts. They then, slightly alarmingly, just join the cluster without any further authentication or authorisation.
It may be down to the fact I have enrolment enabled, or that the nodes are using signed, trusted certificates, but I'm pretty sure I didn't enable client authentication on the transport / http config.
Thank you Frank for your kind attention and cooperation.
we have only three nodes and all of these should be master. I just revised the elasticsearch.yml and put the hostname of these three nodes in the cluster.initial_master_nodes, and my elasticsearch.yml for one of my nodes is like this
but it seems each node is independent and did NOT join the cluster, although these nodes have access to each other. When I restarted the elastic service and get cluster health via curl it shows as follows
Frank, Could you please your elasticsearch.yml ?
Also, you said that you manually generated the certificate for the cluster, and on the other hand, you said that didn't enable client authentication on the transport / http config. Would you please describe it for me since it's a bit confusing?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.