Merge pull request #39389 from mikedanese/kubeadm-fix

Automatic merge from submit-queue (batch tested with PRs 39280, 37350, 39389, 39390, 39313)

kubeadm: readd --api-port, accidentally removed during refactor.

this broke stuff
This commit is contained in:
Kubernetes Submit Queue 2017-01-03 18:25:12 -08:00 committed by GitHub
commit d0e160559d

View File

@ -80,6 +80,10 @@ func NewCmdInit(out io.Writer) *cobra.Command {
&cfg.API.AdvertiseAddresses, "api-advertise-addresses", cfg.API.AdvertiseAddresses,
"The IP addresses to advertise, in case autodetection fails",
)
cmd.PersistentFlags().Int32Var(
&cfg.API.Port, "api-port", cfg.API.Port,
"Port for API to bind to",
)
cmd.PersistentFlags().StringSliceVar(
&cfg.API.ExternalDNSNames, "api-external-dns-names", cfg.API.ExternalDNSNames,
"The DNS names to advertise, in case you have configured them yourself",