From 7f9bc75c89a80ee9eb7efdb15bbff1be3b6ac451 Mon Sep 17 00:00:00 2001 From: Zhao Xiaojie <1450685+LinuxSuRen@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:23:14 +0800 Subject: [PATCH] Set the default portMappings for ks installation in kind mode (#95) --- kubectl-plugin/install/kind.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubectl-plugin/install/kind.go b/kubectl-plugin/install/kind.go index de8e611..33bc026 100644 --- a/kubectl-plugin/install/kind.go +++ b/kubectl-plugin/install/kind.go @@ -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{},