cmd.Flags().String("api-port","random","Specify the Kubernetes API server port exposed on the LoadBalancer (Format: `--api-port [HOST:]HOSTPORT`)\n - Example: `k3d create -m 3 -a 0.0.0.0:6550`")
cmd.Flags().String("api-port","random","Specify the Kubernetes API server port exposed on the LoadBalancer (Format: `[HOST:]HOSTPORT`)\n - Example: `k3d create -m 3 -a 0.0.0.0:6550`")
cmd.Flags().IntP("servers","s",1,"Specify how many servers you want to create")
cmd.Flags().IntP("servers","s",1,"Specify how many servers you want to create")
cmd.Flags().IntP("agents","a",0,"Specify how many agents you want to create")
cmd.Flags().IntP("agents","a",0,"Specify how many agents you want to create")
cmd.Flags().StringP("image","i",fmt.Sprintf("%s:%s",k3d.DefaultK3sImageRepo,version.GetK3sVersion(false)),"Specify k3s image that you want to use for the nodes")
cmd.Flags().StringP("image","i",fmt.Sprintf("%s:%s",k3d.DefaultK3sImageRepo,version.GetK3sVersion(false)),"Specify k3s image that you want to use for the nodes")
cmd.Flags().String("network","","Join an existing network")
cmd.Flags().String("network","","Join an existing network")
cmd.Flags().String("token","","Specify a cluster token. By default, we generate one.")
cmd.Flags().String("token","","Specify a cluster token. By default, we generate one.")
cmd.Flags().StringArrayP("volume","v",nil,"Mount volumes into the nodes (Format: `--volume [SOURCE:]DEST[@NODEFILTER[;NODEFILTER...]]`\n - Example: `k3d create -w 2 -v /my/path@agent[0,1] -v /tmp/test:/tmp/other@server[0]`")
cmd.Flags().StringArrayP("volume","v",nil,"Mount volumes into the nodes (Format: `[SOURCE:]DEST[@NODEFILTER[;NODEFILTER...]]`\n - Example: `k3d create -w 2 -v /my/path@agent[0,1] -v /tmp/test:/tmp/other@server[0]`")
cmd.Flags().StringArrayP("port","p",nil,"Map ports from the node containers to the host (Format: `[HOST:][HOSTPORT:]CONTAINERPORT[/PROTOCOL][@NODEFILTER]`)\n - Example: `k3d create -w 2 -p 8080:80@agent[0] -p 8081@agent[1]`")
cmd.Flags().StringArrayP("port","p",nil,"Map ports from the node containers to the host (Format: `[HOST:][HOSTPORT:]CONTAINERPORT[/PROTOCOL][@NODEFILTER]`)\n - Example: `k3d create -w 2 -p 8080:80@agent[0] -p 8081@agent[1]`")
cmd.Flags().BoolVar(&createClusterOpts.WaitForServer,"wait",true,"Wait for the server(s) to be ready before returning. Use '--timeout DURATION' to not wait forever.")
cmd.Flags().BoolVar(&createClusterOpts.WaitForServer,"wait",true,"Wait for the server(s) to be ready before returning. Use '--timeout DURATION' to not wait forever.")
cmd.Flags().DurationVar(&createClusterOpts.Timeout,"timeout",0*time.Second,"Rollback changes if cluster couldn't be created in specified duration.")
cmd.Flags().DurationVar(&createClusterOpts.Timeout,"timeout",0*time.Second,"Rollback changes if cluster couldn't be created in specified duration.")