nodeshutdown

package
v1.20.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 13 Imported by: 2

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, shutdownGracePeriodRequested, shutdownGracePeriodCriticalPods time.Duration) *Manager

NewManager returns a new node shutdown manager.

func (*Manager) ShutdownStatus

func (m *Manager) ShutdownStatus() error

ShutdownStatus will return an error if the node is currently shutting down.

func (*Manager) Start

func (m *Manager) Start() error

Start starts the node shutdown manager and will start watching the node for shutdown events.

Directories

Path Synopsis
Package systemd provides utility functions for kubelet to perform systemd related operations.
Package systemd provides utility functions for kubelet to perform systemd related operations.

Jump to

Keyboard shortcuts

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