Closed rud813 closed 1 month ago
By giving a quick look at the code, it seems like the --ssh-key
flag value is not parsed, although the flag itself is accepted
Hi, k3sup relies on GitHub sponsors or me having spare time to donate to all you good people who enjoy using the tool.
You could send a Pull Request or sponsor me if you'd like to see this changed sooner.
The k3sup plan
command doesn't support all flags and options that k3sup install
/ join
does at this time. The option may show as available due to being added at a higher level generically.
Alex
I've made these requested changes, but I'd encourage each of you to become a sponsor on whatever tier makes sense if you enjoy this tool and would like to see new features added.
Thanks Alex. I appreciate it.
Thank you for the sponsorship @rud813 💪
Do also have a look at inlets, you may like some of the ways you can combine it with k3s for a lab:
https://inlets.dev/blog/2024/08/15/inlets-operator-with-hetzner.html
https://inlets.dev/blog/2022/07/07/access-kubernetes-api-server.html
Afternoon, i'm currently using k3sup 0.13.6.
It looks like when i try to do a k3sup plan on my json file, the ssh-key i've supplied doesn't carry over to the output.
here's my code to creat the plan:
k3sup plan \ devices.json \ --user debian \ --servers 3 \ --server-k3s-extra-args "--disable traefik" \ --ssh-key "$HOME/.ssh/private_key.pem"
Here is the snippet of the output `
!/bin/sh
echo "Setting up primary server 1" k3sup install --host 10.0.0.180 \ --user debian \ --cluster \ --local-path kubeconfig \ --context default \ --k3s-extra-args "--disable traefik"
echo "Fetching the server's node-token into memory"
export NODE_TOKEN=$(k3sup node-token --host 10.0.0.180 --user debian)
echo "Setting up additional server: 2" k3sup join \ --host 10.0.0.181 \ --server-host 10.0.0.180 \ --server \ --node-token "$NODE_TOKEN" \ --user debian \ --k3s-extra-args "--disable traefik"
echo "Setting up additional server: 3" k3sup join \ --host 10.0.0.182 \ --server-host 10.0.0.180 \ --server \ --node-token "$NODE_TOKEN" \ --user debian \ --k3s-extra-args "--disable traefik"
echo "Setting up worker: 1" k3sup join \ --host 10.0.0.183 \ --server-host 10.0.0.180 \ --node-token "$NODE_TOKEN" \ --user debian
echo "Setting up worker: 2" k3sup join \ --host 10.0.0.184 \ --server-host 10.0.0.180 \ --node-token "$NODE_TOKEN" \ --user debian
echo "Setting up worker: 3" k3sup join \ --host 10.0.0.185 \ --server-host 10.0.0.180 \ --node-token "$NODE_TOKEN" \ --user debian
` Is there something i'm doing wrong? Thanks.