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 Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager has functions that can be used to interact with the Node Shutdown Manager.
func NewManager ¶
func NewManager(getPodsFunc eviction.ActivePodsFunc, killPodFunc eviction.KillPodFunc, syncNodeStatus func(), shutdownGracePeriodRequested, shutdownGracePeriodCriticalPods time.Duration) (*Manager, lifecycle.PodAdmitHandler)
NewManager returns a new node shutdown manager.
func (*Manager) Admit ¶ added in v1.20.5
func (m *Manager) Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult
Admit rejects all pods if node is shutting
func (*Manager) ShutdownStatus ¶
ShutdownStatus will return an error if the node is currently shutting down.
Click to show internal directories.
Click to hide internal directories.