unmanagedpods

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UnmanagedPodWatcherInterval is the interval to check for unmanaged kube-dns pods (0 to disable)
	UnmanagedPodWatcherInterval = "unmanaged-pod-watcher-interval"
)

Variables

View Source
var Cell = cell.Module(
	"unmanaged-pods-gc",
	"Garbage collector for pods without CiliumEndpoints",

	cell.Config(defaultConfig),
	cell.Invoke(registerController),
	metrics.Metric(NewMetrics),
)

Cell is a cell that implements a controller for restarting pods without CiliumEndpoint CRDs. This is primarily used to restart kube-dns pods that may have started before Cilium was ready.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Interval is the interval between checks for unmanaged pods (0 to disable)
	Interval time.Duration `mapstructure:"unmanaged-pod-watcher-interval"`
}

func (Config) Flags

func (def Config) Flags(flags *pflag.FlagSet)

type Metrics

type Metrics struct {
	// UnmanagedPods records the pods that are unmanaged by Cilium.
	// This includes Running pods not using hostNetwork, which do not have a corresponding CiliumEndpoint object.
	UnmanagedPods metric.Gauge
}

Metrics holds the metrics for the unmanaged pods controller.

func NewMetrics

func NewMetrics() *Metrics

NewMetrics creates a new Metrics instance.

type SharedConfig

type SharedConfig struct {
	// DisableCiliumEndpointCRD disables the use of CiliumEndpoint CRD
	DisableCiliumEndpointCRD bool

	// K8sEnabled indicates whether Kubernetes support is enabled
	K8sEnabled bool
}

SharedConfig contains the configuration that is shared between this module and others.

Jump to

Keyboard shortcuts

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