Commit d0e16055 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
parents fe391d7b 0d6c029f
...@@ -80,6 +80,10 @@ func NewCmdInit(out io.Writer) *cobra.Command { ...@@ -80,6 +80,10 @@ func NewCmdInit(out io.Writer) *cobra.Command {
&cfg.API.AdvertiseAddresses, "api-advertise-addresses", cfg.API.AdvertiseAddresses, &cfg.API.AdvertiseAddresses, "api-advertise-addresses", cfg.API.AdvertiseAddresses,
"The IP addresses to advertise, in case autodetection fails", "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( cmd.PersistentFlags().StringSliceVar(
&cfg.API.ExternalDNSNames, "api-external-dns-names", cfg.API.ExternalDNSNames, &cfg.API.ExternalDNSNames, "api-external-dns-names", cfg.API.ExternalDNSNames,
"The DNS names to advertise, in case you have configured them yourself", "The DNS names to advertise, in case you have configured them yourself",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment