diff --git a/pkg/rke2/rke2_linux.go b/pkg/rke2/rke2_linux.go index 1fc77fbd72..7c1bb14b79 100644 --- a/pkg/rke2/rke2_linux.go +++ b/pkg/rke2/rke2_linux.go @@ -60,7 +60,8 @@ func initExecutor(clx *cli.Context, cfg Config, isServer bool) (*podexecutor.Sta // Verify if the user want to use kine as the datastore // and then remove the etcd from the static pod ExternalDatabase := false - if cmds.ServerConfig.DatastoreEndpoint != "" { + if cmds.ServerConfig.DatastoreEndpoint != "" || (clx.Bool("disable-etcd") && !clx.IsSet("server")) { + cmds.ServerConfig.DisableETCD = false cmds.ServerConfig.ClusterInit = false cmds.ServerConfig.KineTLS = true ExternalDatabase = true