How to expand a single node cluster

I set up a single node cluster, and now I want to convert it into a worker and have another node act as a controller only. Is there an easy way to do it?

Hello @jwezel ,

Thank you for contacting lens forums ,

just to confirm are you talking about lens ?

Well, no, about k0s.

Hi @jwezel

I forwarded your question to the dev team! :slight_smile:

Unfortunately no. When you start controller with --single option, it’ll create a local SQLite DB instead of etcd. And that SQLite DB is not expandable across nodes.

The only option is to utilize an “external” backup like Velero to take a “snapshot” of the Kubernetes state, re-create the controller(s) with etcd and restore the state. While doing that you can also re-use the CA etc certs so those would not change.