Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create prepare_one_node_cluster command #972

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/cloudlab/start_onenode_vhive_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ func StartOnenodeVhiveCluster(sandbox string) error {
return err
}

if err = cluster.SetupMasterNode(sandbox); err != nil {
return err
}

utils.InfoPrintf("All logs are stored in %s", ctrdLogDir)
return nil
}
5 changes: 0 additions & 5 deletions scripts/cluster/create_one_node_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ func CreateOneNodeCluster(stockContainerd string) error {
return err
}

err = SetupMasterNode(stockContainerd)
if err != nil {
return err
}

return nil
}

Expand Down
13 changes: 13 additions & 0 deletions scripts/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func main() {
availableCmds := []string{
"create_multinode_cluster",
"create_one_node_cluster",
"prepare_one_node_cluster",
"setup_master_node",
"setup_worker_kubelet",
"setup_node",
Expand Down Expand Up @@ -157,6 +158,18 @@ func main() {
}
utils.InfoPrintf("Create one-node Cluster\n")
err = cluster.CreateOneNodeCluster(setupFlags.Args()[1])
if err == nil {
utils.InfoPrintf("Set up master node\n")
err = cluster.SetupMasterNode(setupFlags.Args()[1])
}
case "prepare_one_node_cluster":
if setupFlags.NArg() < 2 {
utils.FatalPrintf("Missing parameters: %s <stock-containerd>\n", subCmd)
utils.CleanEnvironment()
os.Exit(1)
}
utils.InfoPrintf("Create one-node Cluster\n")
err = cluster.CreateOneNodeCluster(setupFlags.Args()[1])
case "setup_master_node":
if setupFlags.NArg() < 2 {
utils.FatalPrintf("Missing parameters: %s <stock-containerd>\n", subCmd)
Expand Down
Loading