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().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(&cfg.Networking.PodSubnet,"pod-network-cidr",cfg.Networking.PodSubnet,`The range of IP addresses used for the Pod network`)
returnfmt.Errorf("couldn't use \"%s\" as \"apiserver-advertise-address\", must be ipv4 or ipv6 address",cfg.API.AdvertiseAddress)
}
// Choose the right address for the API Server to advertise. If the advertise address is localhost or 0.0.0.0, the default interface's IP address is used