ingress

package
v0.2.3-patch-4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConcurrencyWatchdog

func NewConcurrencyWatchdog(manager ctrl.Manager, conf *config.Config, target ListWatchdogTargets) error

func NewIngressClassReconciler added in v0.0.2

func NewIngressClassReconciler(manager ctrl.Manager, resources []client.Object, name string) error

NewIngressClassReconciler creates a reconciler that manages ingress class resources

func NewIngressControllerReconciler

func NewIngressControllerReconciler(manager ctrl.Manager, resources []client.Object, name string) error

NewIngressControllerReconciler creates a reconciler that manages ingress controller resources

func NginxScrapeFn added in v0.0.2

func NginxScrapeFn(ctx context.Context, client rest.Interface, pod *corev1.Pod) (float64, error)

NginxScrapeFn is the scrape function for Nginx

Types

type ConcurrencyWatchdog

type ConcurrencyWatchdog struct {
	// contains filtered or unexported fields
}

ConcurrencyWatchdog evicts ingress controller pods that have too many active connections relative to others. This helps redistribute long-running connections when the ingress controller scales up.

func (*ConcurrencyWatchdog) NeedLeaderElection added in v0.0.3

func (c *ConcurrencyWatchdog) NeedLeaderElection() bool

func (*ConcurrencyWatchdog) Start

func (c *ConcurrencyWatchdog) Start(ctx context.Context) error

type ListWatchdogTargets added in v0.1.0

type ListWatchdogTargets func() ([]WatchdogTarget, error)

func GetListNginxWatchdogTargets added in v0.1.0

func GetListNginxWatchdogTargets(cl client.Client, defaultNicControllerClass string) ListWatchdogTargets

type ScrapeFn added in v0.0.2

type ScrapeFn func(ctx context.Context, client rest.Interface, pod *corev1.Pod) (float64, error)

ScrapeFn returns the connection count for the given pod

type WatchdogTarget added in v0.0.2

type WatchdogTarget struct {
	ScrapeFn  ScrapeFn
	PodLabels map[string]string
}

WatchdogTarget refers to a target the concurrency watchdog should track

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL