alexellis / k3sup

bootstrap K3s over SSH in < 60s 🚀
https://github.com/sponsors/alexellis
Other
6.33k stars 376 forks source link

Add --server-ssh-key for join command #422

Open JerryKhw opened 11 months ago

JerryKhw commented 11 months ago

Description

Added the --server-ssh-key flag to the join command to support the ssh key for the existing k3s server. If the flag does not exist, we have worked to ensure that it operates as the existing function.

Why do you need this?

Was raised by someone else. #404

How Has This Been Tested?

./k3sup join \
  --ip $HA_IP \
  --user $HA_USER \
  --server \
  --server-ip $SERVER_IP \
  --server-user $SERVER_USER \
  --server-ssh-key $SERVER_SSH_KEY_PATH \
  --ssh-key $SSH_KEY_PATH

Types of changes

Checklist: