https://rancher.com/ logo
#k3s
Title
e

eager-librarian-82484

08/16/2022, 4:40 PM
--cluster-init seems to be a one time deal? Is there a way to just --cluster-init and quit? How harmful is it to keep the option all the time? What happens if cluster-init is on multiple servers? Also after initial bootstrapping can you specifiy a list of servers so that you aren't always trying to connect to a single server?
1
b

brash-furniture-43577

08/16/2022, 4:45 PM
I don't think you can join servers that each used the --cluster-init option, might be wrong, but that option is ignored if used multiple times, like on restart
If an etcd datastore is found on disk either because that node has either initialized or joined a cluster already, the datastore arguments (
--cluster-init
,
--server
,
--datastore-endpoint
, etc) are ignored.
https://rancher.com/docs/k3s/latest/en/installation/ha-embedded/#existing-clusters
the --server option can be a load balanced url
e

eager-librarian-82484

08/16/2022, 4:52 PM
ah ok
it would be nice to have a "--cluster-init" and quit option. So i can bootstrap the servers and then have standardized configs. But this will work.
7 Views