Skip to content

Commit

Permalink
Set the default portMappings for ks installation in kind mode (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Mar 29, 2021
1 parent 112d98f commit 7f9bc75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubectl-plugin/install/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ ks install kind --nightly latest --components DevOps`,
"The name of kind")
flags.StringVarP(&opt.version, "version", "v", "v1.18.2",
"The version for Kubernetes")
flags.StringToStringVarP(&opt.portMappings, "portMappings", "", nil,
"The extraPortMappings")
flags.StringToStringVarP(&opt.portMappings, "portMappings", "", map[string]string{"30880": "30881",
"30180": "30181"}, "The extraPortMappings")
flags.StringVarP(&opt.ksVersion, "ksVersion", "", "v3.0.0",
"The version of KubeSphere")
flags.StringSliceVarP(&opt.components, "components", "", []string{},
Expand Down

0 comments on commit 7f9bc75

Please sign in to comment.