Documentation ¶
Overview ¶
Package nodeshutdown can watch for node level shutdown events and trigger graceful termination of pods running on the node prior to a system shutdown.
Index ¶
Constants ¶
View Source
const (
NodeShutdownNotAdmittedReason = "NodeShutdown"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.23.0
type Config struct { Logger klog.Logger ProbeManager prober.Manager VolumeManager volumemanager.VolumeManager Recorder record.EventRecorder NodeRef *v1.ObjectReference GetPodsFunc eviction.ActivePodsFunc KillPodFunc eviction.KillPodFunc SyncNodeStatusFunc func() ShutdownGracePeriodRequested time.Duration ShutdownGracePeriodCriticalPods time.Duration ShutdownGracePeriodByPodPriority []kubeletconfig.ShutdownGracePeriodByPodPriority StateDirectory string Clock clock.Clock }
Config represents Manager configuration
type Manager ¶
type Manager interface { lifecycle.PodAdmitHandler Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult Start() error ShutdownStatus() error }
Manager interface provides methods for Kubelet to manage node shutdown.
func NewManager ¶
NewManager returns a new node shutdown manager.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.