Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
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
10 changes: 10 additions & 0 deletions cmd/nvkind/cluster_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type ClusterCreateFlags struct {
ConfigTemplate string
ConfigValues string
KubeConfig string
SkipGPUSetup bool
}

func BuildClusterCreateCommand() *cli.Command {
Expand Down Expand Up @@ -90,6 +91,12 @@ func BuildClusterCreateCommand() *cli.Command {
Destination: &flags.KubeConfig,
EnvVars: []string{"KUBECONFIG"},
},
&cli.BoolFlag{
Name: "skip-gpu-setup",
Usage: "skip GPU node setup even if GPUs are present",
Destination: &flags.SkipGPUSetup,
EnvVars: []string{"NVKIND_SKIP_GPU_SETUP"},
},
}

return &cmd
Expand Down Expand Up @@ -121,6 +128,9 @@ func runClusterCreate(c *cli.Context, f *ClusterCreateFlags) error {
}

for _, node := range nodes {
if f.SkipGPUSetup {
continue
}
if !node.HasGPUs() {
continue
}
Expand Down