cmd.Flags().StringVar(&cfg.API.AdvertiseAddress,"apiserver-advertise-address",cfg.API.AdvertiseAddress,"The IP address the API Server will advertise it's listening on. 0.0.0.0 means the default network interface's address.")
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.ServiceSubnet,"service-cidr",cfg.Networking.ServiceSubnet,"Use alternative range of IP address for service VIPs")
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(&cfgPath,"config",cfgPath,"Path to kubeadm config file (WARNING: Usage of a configuration file is experimental)")
// runCmdPhase creates a cobra.Command Run function, by composing the call to the given cmdFunc with necessary additional steps (e.g preparation of input parameters)
// This call returns the ready-to-use configuration based on the configuration file that might or might not exist and the default cfg populated by flags