 Documentation
      ¶
      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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.23.0
type Config struct {
	ProbeManager                     prober.Manager
	Recorder                         record.EventRecorder
	NodeRef                          *v1.ObjectReference
	GetPodsFunc                      eviction.ActivePodsFunc
	KillPodFunc                      eviction.KillPodFunc
	SyncNodeStatusFunc               func()
	ShutdownGracePeriodRequested     time.Duration
	ShutdownGracePeriodCriticalPods  time.Duration
	ShutdownGracePeriodByPodPriority []kubeletconfig.ShutdownGracePeriodByPodPriority
	Clock                            clock.Clock
}
    Config represents Manager configuration
type Manager ¶
type Manager interface {
	Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult
	Start() error
	ShutdownStatus() error
}
    Manager interface provides methods for Kubelet to manage node shutdown.
func NewManager ¶
func NewManager(conf *Config) (Manager, lifecycle.PodAdmitHandler)
NewManager returns a new node shutdown manager.
 Click to show internal directories. 
   Click to hide internal directories.