cmd.Flags().StringVar(&cfg.API.AdvertiseAddress,"apiserver-advertise-address",cfg.API.AdvertiseAddress,`The IP address the API Server will advertise it's listening on. Specify '0.0.0.0' to use the address of the default network interface.`)
cmd.Flags().Int32Var(&cfg.API.BindPort,"apiserver-bind-port",cfg.API.BindPort,`Port for the API Server to bind to.`)
cmd.Flags().StringVar(&cfg.Networking.PodSubnet,"pod-network-cidr",cfg.Networking.PodSubnet,`Specify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node.`)
cmd.Flags().StringVar(&cfg.API.AdvertiseAddress,"apiserver-advertise-address",cfg.API.AdvertiseAddress,`The IP address or DNS name the API server is accessible on`)
cmd.Flags().Int32Var(&cfg.API.BindPort,"apiserver-bind-port",cfg.API.BindPort,`The port the API server is accessible on`)
cmd.Flags().StringVar(&cfg.Networking.PodSubnet,"pod-network-cidr",cfg.Networking.PodSubnet,`The range of IP addresses used for the Pod network`)
cmd.Flags().StringVar(&cfg.Networking.DNSDomain,"service-dns-domain",cfg.Networking.DNSDomain,`Use alternative domain for services, e.g. "myorg.internal.`)
cmd.Flags().StringVar(&cfg.Networking.ServiceSubnet,"service-cidr",cfg.Networking.ServiceSubnet,`Use alternative range of IP address for service VIPs`)
cmd.Flags().StringVar(&cfg.Networking.DNSDomain,"service-dns-domain",cfg.Networking.DNSDomain,`Alternative domain for services`)
cmd.Flags().StringVar(&cfg.Networking.ServiceSubnet,"service-cidr",cfg.Networking.ServiceSubnet,`The range of IP address used for service VIPs`)
cmd.Flags().StringVar(&cfg.Networking.DNSDomain,"service-dns-domain",cfg.Networking.DNSDomain,"Use alternative domain for services, e.g. \"myorg.internal\".")
cmd.Flags().StringVar(&cfg.Networking.ServiceSubnet,"service-cidr",cfg.Networking.ServiceSubnet,"Use alternative range of IP address for service VIPs.")
cmd.Flags().StringSliceVar(&cfg.APIServerCertSANs,"apiserver-cert-extra-sans",[]string{},"Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. 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 will advertise it is listening on. Specify '0.0.0.0' to use the address of the default network interface.")
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().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().StringVar(&cfg.API.AdvertiseAddress,"apiserver-advertise-address",cfg.API.AdvertiseAddress,"The IP address or DNS name the API Server is accessible on.")
cmd.Flags().Int32Var(&cfg.API.BindPort,"apiserver-bind-port",cfg.API.BindPort,"The port the API Server is accessible on.")
cmd.Flags().StringVar(&cfg.Networking.ServiceSubnet,"service-cidr",cfg.Networking.ServiceSubnet,"The range of IP address used for service VIPs.")
cmd.Flags().StringVar(&cfg.API.AdvertiseAddress,"apiserver-advertise-address",cfg.API.AdvertiseAddress,"The IP address or DNS name the API server is accessible on")
cmd.Flags().Int32Var(&cfg.API.BindPort,"apiserver-bind-port",cfg.API.BindPort,"The port the API server is accessible on")
cmd.Flags().StringVar(&cfg.Networking.ServiceSubnet,"service-cidr",cfg.Networking.ServiceSubnet,"The range of IP address used for service VIPs")
cmd.Flags().StringVar(&featureGatesString,"feature-gates",featureGatesString,"A set of key=value pairs that describe feature gates for various features. "+
short:"Generate a kubeconfig file for the Kubelet to use. Please note that this should *only* be used for bootstrapping purposes! After your control plane is up, you should request all kubelet credentials from the CSR API.",
short:"Generates a kubeconfig file for the kubelet to use. Please note that this should be used *only* for bootstrapping purposes.",
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 or DNS name the API Server is accessible on.")
cmd.Flags().Int32Var(&cfg.API.BindPort,"apiserver-bind-port",cfg.API.BindPort,"The port the API Server is accessible on.")
cmd.Flags().StringVar(&outDir,"kubeconfig-dir",outDir,"The path where to save and store the kubeconfig file.")
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")
cmd.Flags().Int32Var(&cfg.API.BindPort,"apiserver-bind-port",cfg.API.BindPort,"The port the API server is accessible on")
cmd.Flags().StringVar(&outDir,"kubeconfig-dir",outDir,"The port where to save the kubeconfig file")
cmd.Flags().StringVar(&cfg.NodeName,"node-name",cfg.NodeName,`The node name that the kubelet client cert should use.`)
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.")
cmd.Flags().StringVar(&clientName,"client-name",clientName,"The name of the KubeConfig user that will be created. Will also be used as the CN if client certs are created.")
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(&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(&featureGatesString,"feature-gates",featureGatesString,"A set of key=value pairs that describe feature gates for various features."+
cmd.Flags().StringVar(&featureGatesString,"feature-gates",featureGatesString,"A set of key=value pairs that describe feature gates for various features."+
Short:"Upload the currently used configuration for kubeadm to a ConfigMap in the cluster for future use in reconfiguration and upgrades of the cluster.",
Short:"Uploads the currently used configuration for kubeadm to a ConfigMap",