omni icon indicating copy to clipboard operation
omni copied to clipboard

[feature] Support for importing existing Talos cluster

Open kenlasko opened this issue 1 year ago • 7 comments
trafficstars

Problem Description

I've been playing around with Omni at home and its fantastic for spinning up new clusters without much preparation. However, I've got a well-defined process for deploying Talos via iPXE that is pretty much hands-off and it works well. I'd love to be able to manage upgrades and monitor my existing deployment via Omni. Will there ever be a way to import an existing Talos cluster into Omni?

Solution

No response

Alternative Solutions

No response

Notes

No response

kenlasko avatar Mar 26 '24 16:03 kenlasko

The other thing this could enable would be to setup a single-node talos cluster to host Omni, then import that "management cluster" into Omni after Omni gets installed... this might wreak havoc on things like upgrade processes and such though, so maybe should be careful with this use-case as I think about it. This is a bit like how Rancher behaves, they've got the upgrades thing figured out, so it's gotta be possible :)

KarmaPoliceT2 avatar Jul 25 '24 05:07 KarmaPoliceT2

Importing existing clusters into Omni is not supported.

Managing the machine which runs Omni using Omni is not going to be something that we're looking for, as we know this flow is too fragile.

smira avatar Jul 25 '24 13:07 smira

A workflow for importing existing clusters would be helpful for people that have existing clusters, in particular single node edge clusters that want to switch over to omni

stereobutter avatar Aug 06 '24 13:08 stereobutter

I think we'll get to that task eventually, just not right now.

Unix4ever avatar Aug 06 '24 17:08 Unix4ever

The question is also what importing means here, I personally would be fine with a workflow that wipes/resets the cluster to join omni.

stereobutter avatar Aug 06 '24 17:08 stereobutter

The question is also what importing means here, I personally would be fine with a workflow that wipes/resets the cluster to join omni.

You can join the machines which were part of the vanilla cluster even today. For that you need to:

  • download machine join config from the Omni home page.
  • reset the machines you want to join talosctl reset -n <id> --system-labels-to-wipe=STATE.
  • run talosctl apply -f machine-config.yaml where machine-config.yaml is what you downloaded from Omni.

After that the machine will join Omni.

Importing a cluster preserving the state is more complicated as in that case we need to rebuild whole resource state for the cluster in Omni.

Unix4ever avatar Aug 07 '24 14:08 Unix4ever

Would it not be possible that one would just use omni as graphical ui (for upgrades etc) for an existing cluster? So basically omni would just need the talosconfig to import and then use the api to do upgrades and adding new users.

suse-coder avatar Mar 23 '25 09:03 suse-coder