Documentation
¶
Overview ¶
Package options contains flags and options for initializing an apiserver
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompletedOptions ¶ added in v1.28.0
type CompletedOptions struct {
// contains filtered or unexported fields
}
func (CompletedOptions) Validate ¶ added in v1.28.0
func (s CompletedOptions) Validate() []error
Validate checks ServerRunOptions and return a slice of found errs.
type Extra ¶ added in v1.28.0
type Extra struct {
AllowPrivileged bool
KubeletConfig kubeletclient.KubeletClientConfig
KubernetesServiceNodePort int
// ServiceClusterIPRange is mapped to input provided by user
ServiceClusterIPRanges string
// PrimaryServiceClusterIPRange and SecondaryServiceClusterIPRange are the results
// of parsing ServiceClusterIPRange into actual values
PrimaryServiceClusterIPRange net.IPNet
SecondaryServiceClusterIPRange net.IPNet
// APIServerServiceIP is the first valid IP from PrimaryServiceClusterIPRange
APIServerServiceIP net.IP
ServiceNodePortRange utilnet.PortRange
EndpointReconcilerType string
MasterCount int
}
type ServerRunOptions ¶ added in v1.5.0
type ServerRunOptions struct {
*controlplaneapiserver.Options // embedded to avoid noise in existing consumers
Extra
}
ServerRunOptions runs a kubernetes api server.
func NewServerRunOptions ¶ added in v1.5.0
func NewServerRunOptions() *ServerRunOptions
NewServerRunOptions creates and returns ServerRunOptions according to the given featureGate and effectiveVersion of the server binary to run.
func (*ServerRunOptions) Complete ¶ added in v1.28.0
func (s *ServerRunOptions) Complete(ctx context.Context) (CompletedOptions, error)
Complete set default ServerRunOptions. Should be called after kube-apiserver flags parsed.
func (*ServerRunOptions) Flags ¶ added in v1.12.0
func (s *ServerRunOptions) Flags() (fss cliflag.NamedFlagSets)
Flags returns flags for a specific APIServer by section name
Click to show internal directories.
Click to hide internal directories.