Merge pull request #12998 from justinsb/apiserver_advertise_address

componentconfig: expose advertise-address flag for kube-apiserver
This commit is contained in:
Kubernetes Prow Robot 2021-12-19 01:47:24 -08:00 committed by GitHub
commit 942d80801d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 0 deletions

View File

@ -1347,6 +1347,10 @@ spec:
description: AdmissionControlConfigFile is the location of the
admission-control-config-file
type: string
advertiseAddress:
description: AdvertiseAddress is the IP address on which to advertise
the apiserver to members of the cluster.
type: string
allowPrivileged:
description: AllowPrivileged indicates if we can run privileged
containers

View File

@ -290,6 +290,8 @@ type KubeAPIServerConfig struct {
InsecurePort *int32 `json:"insecurePort,omitempty" flag:"insecure-port"`
// Address is the binding address for the kube api: Deprecated - use insecure-bind-address and bind-address
Address string `json:"address,omitempty" flag:"address"`
// AdvertiseAddress is the IP address on which to advertise the apiserver to members of the cluster.
AdvertiseAddress string `json:"advertiseAddress,omitempty" flag:"advertise-address"`
// BindAddress is the binding address for the secure kubernetes API
BindAddress string `json:"bindAddress,omitempty" flag:"bind-address"`
// InsecureBindAddress is the binding address for the InsecurePort for the insecure kubernetes API

View File

@ -290,6 +290,8 @@ type KubeAPIServerConfig struct {
InsecurePort *int32 `json:"insecurePort,omitempty" flag:"insecure-port"`
// Address is the binding address for the kube api: Deprecated - use insecure-bind-address and bind-address
Address string `json:"address,omitempty" flag:"address"`
// AdvertiseAddress is the IP address on which to advertise the apiserver to members of the cluster.
AdvertiseAddress string `json:"advertiseAddress,omitempty" flag:"advertise-address"`
// BindAddress is the binding address for the secure kubernetes API
BindAddress string `json:"bindAddress,omitempty" flag:"bind-address"`
// InsecureBindAddress is the binding address for the InsecurePort for the insecure kubernetes API

View File

@ -4754,6 +4754,7 @@ func autoConvert_v1alpha2_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(in *Ku
out.SecurePort = in.SecurePort
out.InsecurePort = in.InsecurePort
out.Address = in.Address
out.AdvertiseAddress = in.AdvertiseAddress
out.BindAddress = in.BindAddress
out.InsecureBindAddress = in.InsecureBindAddress
out.EnableBootstrapAuthToken = in.EnableBootstrapAuthToken
@ -4865,6 +4866,7 @@ func autoConvert_kops_KubeAPIServerConfig_To_v1alpha2_KubeAPIServerConfig(in *ko
out.SecurePort = in.SecurePort
out.InsecurePort = in.InsecurePort
out.Address = in.Address
out.AdvertiseAddress = in.AdvertiseAddress
out.BindAddress = in.BindAddress
out.InsecureBindAddress = in.InsecureBindAddress
out.EnableBootstrapAuthToken = in.EnableBootstrapAuthToken

View File

@ -288,6 +288,8 @@ type KubeAPIServerConfig struct {
InsecurePort *int32 `json:"insecurePort,omitempty" flag:"insecure-port"`
// Address is the binding address for the kube api: Deprecated - use insecure-bind-address and bind-address
Address string `json:"address,omitempty" flag:"address"`
// AdvertiseAddress is the IP address on which to advertise the apiserver to members of the cluster.
AdvertiseAddress string `json:"advertiseAddress,omitempty" flag:"advertise-address"`
// BindAddress is the binding address for the secure kubernetes API
BindAddress string `json:"bindAddress,omitempty" flag:"bind-address"`
// InsecureBindAddress is the binding address for the InsecurePort for the insecure kubernetes API

View File

@ -4644,6 +4644,7 @@ func autoConvert_v1alpha3_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(in *Ku
out.SecurePort = in.SecurePort
out.InsecurePort = in.InsecurePort
out.Address = in.Address
out.AdvertiseAddress = in.AdvertiseAddress
out.BindAddress = in.BindAddress
out.InsecureBindAddress = in.InsecureBindAddress
out.EnableBootstrapAuthToken = in.EnableBootstrapAuthToken
@ -4755,6 +4756,7 @@ func autoConvert_kops_KubeAPIServerConfig_To_v1alpha3_KubeAPIServerConfig(in *ko
out.SecurePort = in.SecurePort
out.InsecurePort = in.InsecurePort
out.Address = in.Address
out.AdvertiseAddress = in.AdvertiseAddress
out.BindAddress = in.BindAddress
out.InsecureBindAddress = in.InsecureBindAddress
out.EnableBootstrapAuthToken = in.EnableBootstrapAuthToken