-
Notifications
You must be signed in to change notification settings - Fork 76
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
Move byohosts after clusterctl move to new management cluster #853
Comments
Hi @robinAwallace, I think the cluster
This might be due to the permissions on
Can you share the agent output/errors too? |
Hello 🙂 No there where no errors from clusterctl move. The only error I got was that the byoh controller could not find the byohosts. But I got it to work. Then I had to create new kubeconfigs with the correct cert and ip to the new control-plane. Also I had to create a new csr to validate byoh agent user. Finally I sent the new kubeconfig to the nodes at |
Awesome, there are still some UX gaps but it will be nice to have the above manual process captured in some doc. Would you like to create a PR for documentation of the steps that you have followed? |
Tried to follow the same process, but byoh-agent got stuck with:
I believe the reason for this is that Status for ByoHost is not copied to destination cluster, but because it has a AttachedByoMachineLabel byoh infrastructure controller is not setting it. Tried to delete AttachedByoMachineLabel label and restart byoh infrastructure controller, but it didn't help - byoh infrastructure controller now says that:
|
Hmm, I did not have this issue. But yes as you say it does not copy over the ByoHosts when running the move command. So I had to copy them manually by doing a I hope you get it to work 🙂 |
I think my problem was that I skipped that part:
But I got it got work, though I had to add a little patch (nebius#9) This way the move process is very simple:
I think I'll write some e2e tests and bring PR with it (and some documentation about move process) |
What steps did you take and what happened:
Hello,
I have a BYOH cluster that I would like to move to a new management cluster using the clusterctl move command
clusterctl move --kubeconfig <byoh-management-cluster> --to-kubeconfig <new-management-cluster>
.All resource are moved but the byohost are not moved. Which is maybe not that strange. But Im not able to register the machines to the new management cluster.
I have tried to generate new bootstrap-kubeconfigs for the new management cluster and send them to the machines and restart the byoh-agent with no success.
What did you expect to happen:
After
clusterctl move
I would like to re-register the machines to the new management cluster.Anything else you would like to add:
Environment:
kubectl version --short
): v1.26.6/etc/os-release
): Ubuntu-20.04The text was updated successfully, but these errors were encountered: