Documentation
¶
Overview ¶
Package options provides the flags used for the controller manager.
Index ¶
- Constants
- func NewDefaultComponentConfig(insecurePort int32) (kubectrlmgrconfig.KubeControllerManagerConfiguration, error)
- type AttachDetachControllerOptions
- type CSRSigningControllerOptions
- type DaemonSetControllerOptions
- type DeploymentControllerOptions
- type DeprecatedControllerOptions
- type EndpointControllerOptions
- type GarbageCollectorControllerOptions
- type HPAControllerOptions
- type JobControllerOptions
- type KubeControllerManagerOptions
- func (s *KubeControllerManagerOptions) ApplyTo(c *kubecontrollerconfig.Config) error
- func (s KubeControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*kubecontrollerconfig.Config, error)
- func (s *KubeControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) apiserverflag.NamedFlagSets
- func (s *KubeControllerManagerOptions) Validate(allControllers []string, disabledByDefaultControllers []string) error
- type NamespaceControllerOptions
- type NodeIPAMControllerOptions
- type NodeLifecycleControllerOptions
- type PersistentVolumeBinderControllerOptions
- type PodGCControllerOptions
- type ReplicaSetControllerOptions
- type ReplicationControllerOptions
- type ResourceQuotaControllerOptions
- type SAControllerOptions
- type TTLAfterFinishedControllerOptions
Constants ¶
const (
// DefaultClusterSigningCertFile is deprecated. Do not use.
DefaultClusterSigningCertFile = "/etc/kubernetes/ca/ca.pem"
// DefaultClusterSigningKeyFile is deprecated. Do not use.
DefaultClusterSigningKeyFile = "/etc/kubernetes/ca/ca.key"
)
const (
// KubeControllerManagerUserAgent is the userAgent name when starting kube-controller managers.
KubeControllerManagerUserAgent = "kube-controller-manager"
)
Variables ¶
This section is empty.
Functions ¶
func NewDefaultComponentConfig ¶ added in v1.11.0
func NewDefaultComponentConfig(insecurePort int32) (kubectrlmgrconfig.KubeControllerManagerConfiguration, error)
NewDefaultComponentConfig returns kube-controller manager configuration object.
Types ¶
type AttachDetachControllerOptions ¶ added in v1.12.0
type AttachDetachControllerOptions struct {
ReconcilerSyncLoopPeriod metav1.Duration
DisableAttachDetachReconcilerSync bool
}
AttachDetachControllerOptions holds the AttachDetachController options.
func (*AttachDetachControllerOptions) AddFlags ¶ added in v1.12.0
func (o *AttachDetachControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to AttachDetachController for controller manager to the specified FlagSet.
type CSRSigningControllerOptions ¶ added in v1.12.0
type CSRSigningControllerOptions struct {
ClusterSigningDuration metav1.Duration
ClusterSigningKeyFile string
ClusterSigningCertFile string
}
CSRSigningControllerOptions holds the CSRSigningController options.
func (*CSRSigningControllerOptions) AddFlags ¶ added in v1.12.0
func (o *CSRSigningControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to CSRSigningController for controller manager to the specified FlagSet.
type DaemonSetControllerOptions ¶ added in v1.12.0
type DaemonSetControllerOptions struct {
ConcurrentDaemonSetSyncs int32
}
DaemonSetControllerOptions holds the DaemonSetController options.
func (*DaemonSetControllerOptions) AddFlags ¶ added in v1.12.0
func (o *DaemonSetControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to DaemonSetController for controller manager to the specified FlagSet.
type DeploymentControllerOptions ¶ added in v1.12.0
type DeploymentControllerOptions struct {
ConcurrentDeploymentSyncs int32
DeploymentControllerSyncPeriod metav1.Duration
}
DeploymentControllerOptions holds the DeploymentController options.
func (*DeploymentControllerOptions) AddFlags ¶ added in v1.12.0
func (o *DeploymentControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to DeploymentController for controller manager to the specified FlagSet.
type DeprecatedControllerOptions ¶ added in v1.12.0
type DeprecatedControllerOptions struct {
DeletingPodsQPS float32
DeletingPodsBurst int32
RegisterRetryCount int32
}
DeprecatedControllerOptions holds the DeprecatedController options, those option are deprecated. TODO remove these fields once the deprecated flags are removed.
func (*DeprecatedControllerOptions) AddFlags ¶ added in v1.12.0
func (o *DeprecatedControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to DeprecatedController for controller manager to the specified FlagSet.
type EndpointControllerOptions ¶ added in v1.12.0
type EndpointControllerOptions struct {
ConcurrentEndpointSyncs int32
}
EndpointControllerOptions holds the EndPointController options.
func (*EndpointControllerOptions) AddFlags ¶ added in v1.12.0
func (o *EndpointControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to EndPointController for controller manager to the specified FlagSet.
type GarbageCollectorControllerOptions ¶ added in v1.12.0
type GarbageCollectorControllerOptions struct {
ConcurrentGCSyncs int32
GCIgnoredResources []kubectrlmgrconfig.GroupResource
EnableGarbageCollector bool
}
GarbageCollectorControllerOptions holds the GarbageCollectorController options.
func (*GarbageCollectorControllerOptions) AddFlags ¶ added in v1.12.0
func (o *GarbageCollectorControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to GarbageCollectorController for controller manager to the specified FlagSet.
type HPAControllerOptions ¶ added in v1.12.0
type HPAControllerOptions struct {
HorizontalPodAutoscalerUseRESTClients bool
HorizontalPodAutoscalerTolerance float64
HorizontalPodAutoscalerDownscaleStabilizationWindow metav1.Duration
HorizontalPodAutoscalerDownscaleForbiddenWindow metav1.Duration
HorizontalPodAutoscalerUpscaleForbiddenWindow metav1.Duration
HorizontalPodAutoscalerSyncPeriod metav1.Duration
HorizontalPodAutoscalerCPUInitializationPeriod metav1.Duration
HorizontalPodAutoscalerInitialReadinessDelay metav1.Duration
}
HPAControllerOptions holds the HPAController options.
func (*HPAControllerOptions) AddFlags ¶ added in v1.12.0
func (o *HPAControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to HPAController for controller manager to the specified FlagSet.
type JobControllerOptions ¶ added in v1.12.0
type JobControllerOptions struct {
ConcurrentJobSyncs int32
}
JobControllerOptions holds the JobController options.
func (*JobControllerOptions) AddFlags ¶ added in v1.12.0
func (o *JobControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to JobController for controller manager to the specified FlagSet.
type KubeControllerManagerOptions ¶ added in v1.10.0
type KubeControllerManagerOptions struct {
Generic *cmoptions.GenericControllerManagerConfigurationOptions
KubeCloudShared *cmoptions.KubeCloudSharedOptions
ServiceController *cmoptions.ServiceControllerOptions
AttachDetachController *AttachDetachControllerOptions
CSRSigningController *CSRSigningControllerOptions
DaemonSetController *DaemonSetControllerOptions
DeploymentController *DeploymentControllerOptions
DeprecatedFlags *DeprecatedControllerOptions
EndpointController *EndpointControllerOptions
GarbageCollectorController *GarbageCollectorControllerOptions
HPAController *HPAControllerOptions
JobController *JobControllerOptions
NamespaceController *NamespaceControllerOptions
NodeIPAMController *NodeIPAMControllerOptions
NodeLifecycleController *NodeLifecycleControllerOptions
PersistentVolumeBinderController *PersistentVolumeBinderControllerOptions
PodGCController *PodGCControllerOptions
ReplicaSetController *ReplicaSetControllerOptions
ReplicationController *ReplicationControllerOptions
ResourceQuotaController *ResourceQuotaControllerOptions
SAController *SAControllerOptions
TTLAfterFinishedController *TTLAfterFinishedControllerOptions
SecureServing *apiserveroptions.SecureServingOptionsWithLoopback
// TODO: remove insecure serving mode
InsecureServing *apiserveroptions.DeprecatedInsecureServingOptionsWithLoopback
Authentication *apiserveroptions.DelegatingAuthenticationOptions
Authorization *apiserveroptions.DelegatingAuthorizationOptions
Master string
Kubeconfig string
}
KubeControllerManagerOptions is the main context object for the kube-controller manager.
func NewKubeControllerManagerOptions ¶ added in v1.10.0
func NewKubeControllerManagerOptions() (*KubeControllerManagerOptions, error)
NewKubeControllerManagerOptions creates a new KubeControllerManagerOptions with a default config.
func (*KubeControllerManagerOptions) ApplyTo ¶ added in v1.10.0
func (s *KubeControllerManagerOptions) ApplyTo(c *kubecontrollerconfig.Config) error
ApplyTo fills up controller manager config with options.
func (KubeControllerManagerOptions) Config ¶ added in v1.10.0
func (s KubeControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*kubecontrollerconfig.Config, error)
Config return a controller manager config objective
type NamespaceControllerOptions ¶ added in v1.12.0
type NamespaceControllerOptions struct {
NamespaceSyncPeriod metav1.Duration
ConcurrentNamespaceSyncs int32
}
NamespaceControllerOptions holds the NamespaceController options.
func (*NamespaceControllerOptions) AddFlags ¶ added in v1.12.0
func (o *NamespaceControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NamespaceController for controller manager to the specified FlagSet.
type NodeIPAMControllerOptions ¶ added in v1.12.0
type NodeIPAMControllerOptions struct {
ServiceCIDR string
NodeCIDRMaskSize int32
}
NodeIPAMControllerOptions holds the NodeIpamController options.
func (*NodeIPAMControllerOptions) AddFlags ¶ added in v1.12.0
func (o *NodeIPAMControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NodeIpamController for controller manager to the specified FlagSet.
type NodeLifecycleControllerOptions ¶ added in v1.12.0
type NodeLifecycleControllerOptions struct {
EnableTaintManager bool
NodeEvictionRate float32
SecondaryNodeEvictionRate float32
NodeStartupGracePeriod metav1.Duration
NodeMonitorGracePeriod metav1.Duration
PodEvictionTimeout metav1.Duration
LargeClusterSizeThreshold int32
UnhealthyZoneThreshold float32
}
NodeLifecycleControllerOptions holds the NodeLifecycleController options.
func (*NodeLifecycleControllerOptions) AddFlags ¶ added in v1.12.0
func (o *NodeLifecycleControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NodeLifecycleController for controller manager to the specified FlagSet.
type PersistentVolumeBinderControllerOptions ¶ added in v1.12.0
type PersistentVolumeBinderControllerOptions struct {
PVClaimBinderSyncPeriod metav1.Duration
VolumeConfiguration kubectrlmgrconfig.VolumeConfiguration
}
PersistentVolumeBinderControllerOptions holds the PersistentVolumeBinderController options.
func (*PersistentVolumeBinderControllerOptions) AddFlags ¶ added in v1.12.0
func (o *PersistentVolumeBinderControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to PersistentVolumeBinderController for controller manager to the specified FlagSet.
type PodGCControllerOptions ¶ added in v1.12.0
type PodGCControllerOptions struct {
TerminatedPodGCThreshold int32
}
PodGCControllerOptions holds the PodGCController options.
func (*PodGCControllerOptions) AddFlags ¶ added in v1.12.0
func (o *PodGCControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to PodGCController for controller manager to the specified FlagSet.
type ReplicaSetControllerOptions ¶ added in v1.12.0
type ReplicaSetControllerOptions struct {
ConcurrentRSSyncs int32
}
ReplicaSetControllerOptions holds the ReplicaSetController options.
func (*ReplicaSetControllerOptions) AddFlags ¶ added in v1.12.0
func (o *ReplicaSetControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ReplicaSetController for controller manager to the specified FlagSet.
type ReplicationControllerOptions ¶ added in v1.12.0
type ReplicationControllerOptions struct {
ConcurrentRCSyncs int32
}
ReplicationControllerOptions holds the ReplicationController options.
func (*ReplicationControllerOptions) AddFlags ¶ added in v1.12.0
func (o *ReplicationControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ReplicationController for controller manager to the specified FlagSet.
type ResourceQuotaControllerOptions ¶ added in v1.12.0
type ResourceQuotaControllerOptions struct {
ResourceQuotaSyncPeriod metav1.Duration
ConcurrentResourceQuotaSyncs int32
}
ResourceQuotaControllerOptions holds the ResourceQuotaController options.
func (*ResourceQuotaControllerOptions) AddFlags ¶ added in v1.12.0
func (o *ResourceQuotaControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ResourceQuotaController for controller manager to the specified FlagSet.
type SAControllerOptions ¶ added in v1.12.0
type SAControllerOptions struct {
ServiceAccountKeyFile string
ConcurrentSATokenSyncs int32
RootCAFile string
}
SAControllerOptions holds the ServiceAccountController options.
func (*SAControllerOptions) AddFlags ¶ added in v1.12.0
func (o *SAControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ServiceAccountController for controller manager to the specified FlagSet
type TTLAfterFinishedControllerOptions ¶ added in v1.12.0
type TTLAfterFinishedControllerOptions struct {
ConcurrentTTLSyncs int32
}
TTLAfterFinishedControllerOptions holds the TTLAfterFinishedController options.
func (*TTLAfterFinishedControllerOptions) AddFlags ¶ added in v1.12.0
func (o *TTLAfterFinishedControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to TTLAfterFinishedController for controller manager to the specified FlagSet.
Source Files
¶
- attachdetachcontroller.go
- csrsigningcontroller.go
- daemonsetcontroller.go
- deploymentcontroller.go
- deprecatedcontroller.go
- endpointcontroller.go
- garbagecollectorcontroller.go
- hpacontroller.go
- jobcontroller.go
- namespacecontroller.go
- nodeipamcontroller.go
- nodelifecyclecontroller.go
- options.go
- persistentvolumebindercontroller.go
- podgccontroller.go
- replicasetcontroller.go
- replicationcontroller.go
- resourcequotacontroller.go
- serviceaccountcontroller.go
- ttlafterfinishedcontroller.go