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

How to use k3sup join a node in control node server #385

Open
1 of 2 tasks
aliuq opened this issue Jul 15, 2022 · 0 comments
Open
1 of 2 tasks

How to use k3sup join a node in control node server #385

aliuq opened this issue Jul 15, 2022 · 0 comments

Comments

@aliuq
Copy link

aliuq commented Jul 15, 2022

I used two cloud server, e.g. A is 1.1.1.1, B is 2.2.2.2, they are brand new to the environment, and can be connected to each other,

# In server A
ssh -i /root/.ssh/test_150_to_43_rsa [email protected]
# In server B
ssh -i /root/.ssh/test_43_to_150_rsa [email protected]

In server A

export SERVER_IP=1.1.1.1
export USER=root

# Get wrong
k3sup install --ip $SERVER_IP --user $USER
# output
# Error: unable to load the ssh key with path "/root/.ssh/id_rsa": unable
# to read file: /root/.ssh/id_rsa, open /root/.ssh/id_rsa: no such file or directory

# It works
k3sup install --ip $SERVER_IP --user $USER --local

then I want to join server B to cluster

In server A

export AGENT_IP=2.2.2.2

k3sup join --ip $AGENT_IP --server-ip $SERVER_IP --user $USER --ssh-key /root/.ssh/test_150_to_43_rsa

# Output
# Running: k3sup join
# Server IP: 1.1.1.1
# Error: unable to connect to (server) 1.1.1.1:22 over ssh: ssh: handshake failed: ssh: unable to
# authenticate, attempted methods [none publickey], no supported methods remain

In server B

export AGENT_IP=2.2.2.2
export SERVER_IP=1.1.1.1
export USER=root
k3sup join --ip $AGENT_IP --server-ip $SERVER_IP --user $USER --ssh-key /root/.ssh/test_43_to_150_rsa

# Output
# Running: k3sup join
# Server IP: 1.1.1.1
# K107d91f95f6bfc5a2d0153b2b17d60abd5d20db87ceb73bbdcc4577483f6a33541::server:xxxxxxxx
# Error: unable to connect to 2.2.2.2:22 over ssh: ssh: handshake failed: ssh: unable to
# authenticate, attempted methods [none publickey], no supported methods remain

I don't know why 😭😭

Are you a GitHub Sponsor (Yes/No?)

  • Yes
  • No

Context

Your Environment

  • k3sup 0.12.0
  • kubectl v1.23.8+k3s2
  • OS Linux Centos 7.6
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

No branches or pull requests

1 participant