Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New( logger *slog.Logger, kclient kubernetes.Interface, r prometheus.Registerer, kubeletServiceName string, kubeletServiceNamespace string, kubeletSelector operator.LabelSelector, commonAnnotations operator.Map, commonLabels operator.Map, opts ...ControllerOption, ) (*Controller, error)
type ControllerOption ¶ added in v0.77.0
type ControllerOption func(*Controller)
func WithEndpointSlice ¶ added in v0.77.0
func WithEndpointSlice() ControllerOption
func WithEndpoints ¶ added in v0.77.0
func WithEndpoints() ControllerOption
func WithHTTPMetrics ¶ added in v0.89.0
func WithHTTPMetrics(enabled bool) ControllerOption
WithHTTPMetrics controls whether to include the insecure HTTP metrics port (10255) in the kubelet Service. When disabled, only the secure HTTPS port (10250) and cAdvisor port (4194) are included. This is useful when the cluster has disabled the insecure kubelet read-only port (e.g., GKE 1.32+).
func WithMaxEndpointsPerSlice ¶ added in v0.77.0
func WithMaxEndpointsPerSlice(v int) ControllerOption
func WithNodeAddressPriority ¶ added in v0.77.0
func WithNodeAddressPriority(s string) ControllerOption
func WithSyncPeriod ¶ added in v0.85.0
func WithSyncPeriod(d time.Duration) ControllerOption
Click to show internal directories.
Click to hide internal directories.