Skip to content

Commit

Permalink
Add easy support for single node sqlite with kine
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Savian <[email protected]>

Disable etcd when single node with kine

Signed-off-by: Vitor Savian <[email protected]>
  • Loading branch information
vitorsavian committed May 31, 2024
1 parent 71d00cc commit 985c7e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/rke2/rke2_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 985c7e9

Please sign in to comment.