edged

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 130 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// MaxContainerBackOff is the max backoff period, exported for the e2e test
	MaxContainerBackOff = 300 * time.Second

	// ImageGCPeriod is the period for performing image garbage collection.
	ImageGCPeriod = 5 * time.Minute
	// ContainerGCPeriod is the period for performing container garbage collection.
	ContainerGCPeriod = time.Minute

	//DefaultRootDir give default directory
	DefaultRootDir = "/var/lib/edged"
	// ContainerLogsDir is the location of container logs.
	ContainerLogsDir = "/var/log/containers"

	//EdgeController gives controller name
	EdgeController = "edgecontroller"

	//DockerShimEndpoint gives the default endpoint for Docker shim runtime
	DockerShimEndpoint = "unix:///var/run/dockershim.sock"
	//DockerShimEndpointDeprecated this is the deprecated dockershim endpoint
	DockerShimEndpointDeprecated = "/var/run/dockershim.sock"
	//DockershimRootDir givesthe default path to the dockershim root directory
	DockershimRootDir = "/var/lib/dockershim"
	//HairpinMode only use forkubenetNetworkPlugin.Currently not working
	HairpinMode = kubeletinternalconfig.HairpinVeth
	//NonMasqueradeCIDR only use forkubenetNetworkPlugin.Currently not working
	NonMasqueradeCIDR = "10.0.0.1/8"

	// ResolvConfDefault gives the default dns resolv configration file
	ResolvConfDefault = "/etc/resolv.conf"
)
View Source
const (
	DefaultKubeletPluginsDirName             = "plugins"
	DefaultKubeletPluginsRegistrationDirName = "plugins_registry"
	DefaultKubeletVolumesDirName             = "volumes"
	DefaultKubeletPodsDirName                = "pods"
)

constants for Kubelet

Variables

View Source
var GPUInfoQueryTool = "/var/IEF/nvidia/bin/nvidia-smi"

GPUInfoQueryTool sets information monitoring tool location for GPU

Functions

func NewInitializedVolumePluginMgr

func NewInitializedVolumePluginMgr(
	edge *edged,
	plugins []volume.VolumePlugin) *volume.VolumePluginMgr

NewInitializedVolumePluginMgr returns a new instance of volume.VolumePluginMgr

func NewNamespacedNameFromString added in v1.6.1

func NewNamespacedNameFromString(s string) types.NamespacedName

NewNamespacedNameFromString parses the provided string and returns a NamespacedName

func ProbeVolumePlugins

func ProbeVolumePlugins(pluginDir string) []volume.VolumePlugin

ProbeVolumePlugins collects all volume plugins into an easy to use list. PluginDir specifies the directory to search for additional third party volume plugins.

func Register added in v1.6.1

func Register(e *v1alpha1.Edged)

Register register edged

Types

type PodKiller added in v1.6.1

type PodKiller interface {
	// KillPod receives pod speficier representing the pod to kill
	KillPod(pair *kubecontainer.PodPair)
	// PerformPodKillingWork performs the actual pod killing work via calling CRI
	// It returns after its Close() func is called and all outstanding pod killing requests are served
	PerformPodKillingWork()
	// After Close() is called, this pod killer wouldn't accept any more pod killing requests
	Close()
}

PodKiller handles requests for killing pods

func NewPodKiller added in v1.6.1

func NewPodKiller(e *edged) PodKiller

NewPodKiller returns a functional PodKiller

Directories

Path Synopsis
volume
csi
csi/nodeinfomanager
Package nodeinfomanager includes internal functions used to add/delete labels to kubernetes nodes for corresponding CSI drivers
Package nodeinfomanager includes internal functions used to add/delete labels to kubernetes nodes for corresponding CSI drivers

Jump to

Keyboard shortcuts

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