Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add node to a cluster #868

Merged
merged 1 commit into from
Jan 14, 2025
Merged

feat: add node to a cluster #868

merged 1 commit into from
Jan 14, 2025

Conversation

dkeven
Copy link
Contributor

@dkeven dkeven commented Jan 14, 2025

  • Background

Currently, a local and single node environment is assumed in the Olares installer, this PR adds a joincluster.sh that can be executed on a new machine to let it join an already existing Olares cluster.

What the new script does, effectively, is read a bunch of environment variables that specify how to access the master node through SSH, run the corresponding commands of olares-cli to retrieve the Olares version of the master node, download and install the container components and join the cluster.

Specifically, the environment variables read by the new joincluster.sh script are:

name explain required default
MASTER_HOST the IP address of the master node true
MASTER_NODE_NAME the node name of master false
MASTER_SSH_USER the Linux user name to login to the master node by SSH false root
MASTER_SSH_PASSWORD the password of the Linux user true for non-root master-ssh-user
MASTER_SSH_PRIVATE_KEY_PATH the private SSH key to authenticate as the Linux user false /root/.ssh/id_rsa
MASTER_SSH_PORT the listening port of the SSH service on the master node false 22

@dkeven dkeven requested a review from eball January 14, 2025 12:53
@dkeven dkeven force-pushed the installer/feat/add_node branch from d508d2b to 33e396b Compare January 14, 2025 13:24
@eball eball merged commit 7ce7f0f into main Jan 14, 2025
6 checks passed
dkeven added a commit that referenced this pull request Jan 23, 2025
eball pushed a commit that referenced this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants