cmd.Flags().StringVar(&cfg.Networking.DNSDomain,"service-dns-domain",cfg.Networking.DNSDomain,"Alternative domain for services, to use for the API server serving cert")
cmd.Flags().StringVar(&cfg.Networking.ServiceSubnet,"service-cidr",cfg.Networking.ServiceSubnet,"Alternative range of IP address for service VIPs, from which derives the internal API server VIP that will be added to the API Server serving cert")
cmd.Flags().StringSliceVar(&cfg.APIServerCertSANs,"apiserver-cert-extra-sans",[]string{},"Optional extra altnames to use for the API server serving cert. Can be both IP addresses and dns names")
cmd.Flags().StringSliceVar(&cfg.APIServerCertSANs,"apiserver-cert-extra-sans",[]string{},"Optional extra altnames to use for the API server serving cert. Can be both IP addresses and DNS names")
cmd.Flags().StringVar(&cfg.API.AdvertiseAddress,"apiserver-advertise-address",cfg.API.AdvertiseAddress,"The IP address the API server is accessible on, to use for the API server serving cert")
cmd.Flags().Var(utilflag.NewMapStringString(&cfg.SchedulerExtraArgs),"scheduler-extra-args","A set of extra flags to pass to the Scheduler or override default ones in form of <flagname>=<value>")
}
cmd.Flags().StringVar(&cfgPath,"config",cfgPath,"Path to kubeadm config file (WARNING: Usage of a configuration file is experimental)")
cmd.Flags().StringVar(&cfgPath,"config",cfgPath,"Path to kubeadm config file. WARNING: Usage of a configuration file is experimental")
@@ -176,7 +176,7 @@ func getKubeConfigSubCommands(out io.Writer, outDir, defaultKubernetesVersion st
// Add flags to the command
ifproperties.use!="user"{
cmd.Flags().StringVar(&cfgPath,"config",cfgPath,"Path to kubeadm config file (WARNING: Usage of a configuration file is experimental)")
cmd.Flags().StringVar(&cfgPath,"config",cfgPath,"Path to kubeadm config file. WARNING: Usage of a configuration file is experimental")
}
cmd.Flags().StringVar(&cfg.CertificatesDir,"cert-dir",cfg.CertificatesDir,"The path where certificates are stored")
cmd.Flags().StringVar(&cfg.API.AdvertiseAddress,"apiserver-advertise-address",cfg.API.AdvertiseAddress,"The IP address the API server is accessible on")
...
...
@@ -186,7 +186,7 @@ func getKubeConfigSubCommands(out io.Writer, outDir, defaultKubernetesVersion st
cmd.Flags().StringVar(&cfg.NodeName,"node-name",cfg.NodeName,`The node name that should be used for the kubelet client certificate`)
}
ifproperties.use=="user"{
cmd.Flags().StringVar(&token,"token",token,"The token that should be used as the authentication mechanism for this kubeconfig (instead of client certificates)")
cmd.Flags().StringVar(&token,"token",token,"The token that should be used as the authentication mechanism for this kubeconfig, instead of client certificates")
cmd.Flags().StringVar(&clientName,"client-name",clientName,"The name of user. It will be used as the CN if client certificates are created")
cmd.Flags().StringVar(&cfg.CertificatesDir,"cert-dir",cfg.CertificatesDir,`The path where certificates are stored`)
cmd.Flags().StringVar(&cfgPath,"config",cfgPath,"Path to a kubeadm config file. WARNING: Usage of a configuration file is experimental!")
cmd.Flags().StringVar(&cfgPath,"config",cfgPath,"Path to a kubeadm config file. WARNING: Usage of a configuration file is experimental")
cmd.Flags().StringVar(&featureGatesString,"feature-gates",featureGatesString,"A set of key=value pairs that describe feature gates for various features. "+