-
Hi! I'm currently developing some automation for management of a k3s cluster and it's not exactly clear to me how the k3s cluster is supposed to be managed beyond initial creation and adding nodes. Searching through issues on "adding nodes" and "removing nodes" gives mentions of As far as I could understand, But: what is its relationship with Or, in general: what are the procedures for adding/removing/replacing 1) a master node or 2) an agent node? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you want to "replace" a server, you should add the new server to the cluster, and then |
Beta Was this translation helpful? Give feedback.
--cluster-init
tells the server to initialize a new etcd cluster. If there are existing etcd datastore files on disk, this flag is ignored, as the cluster has already been initialized.--cluster-reset
performs a minimal start up of the server and resets the etcd cluster membership to contain only the current node. It starts up etcd with theforce-new-cluster
option (see https://etcd.io/docs/v3.5/op-guide/configuration/), which retains the data in the key-value store but removes all other members from the cluster. It then halts, so you can restart the server for normal operation. When resetting the etcd cluster you can optionally also restore from a snapshot. Resetting is mandatory when re…