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?
Well, no, about k0s.
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.