mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 03:38:15 +00:00
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:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user