Our k8s network is connected to other physical and virtual machine networks through the BGP protocol, allowing direct communication between them. Can ECK be configured to allow all nodes to join another cluster? So that the cluster on physical machines can be temporarily expanded.
I also hope to smoothly migrate the physical cluster to ECK using a similar method, where nodes with the same number and roles are created in ECK and added to the existing physical cluster. Once the data has been migrated to the nodes in ECK, the nodes in the physical cluster can be taken offline. Is this possible now?
I have tried configuring only data nodes, but it throws an error saying "Required value: Elasticsearch needs to have at least one master node."
Thank you very much. I tried the following method to achieve cross-cluster scaling and migration, although it is not a secure practice:
Generate a shared certificate file and create a separate secret for tls.crt, tls.key, and ca.crt. All k8s ES instances use this certificate.
Create an ES instance named test-1. Configure "cluster.name: test" in "spec.nodesSets.config", mount the certificate from the secret, and specify the use of these certificate files in the configuration.
Find the master pod IP in test-1, create an ES instance named test-2, and configure discovery.seed_hosts: [ "list of master pod IPs in test-1" ] in the config.
Call api "_cluster/settings" and set "persistent.cluster.routing.allocation.exclude._name" to "test-1-es-data-0, test-1-es-data-1".
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.