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.Second // ContainerGCPeriod is the period for performing container garbage collection. ContainerGCPeriod = 60 * time.Second //DefaultRootDir give default directory DefaultRootDir = "/var/lib/edged" //EdgeController gives controller name EdgeController = "controller" //DockerContainerRuntime gives Docker container runtime name DockerContainerRuntime = "docker" //RemoteContainerRuntime give Remote container runtime name RemoteContainerRuntime = "remote" //RemoteRuntimeEndpoint gives the default endpoint for CRI runtime RemoteRuntimeEndpoint = "/var/run/containerd/containerd.sock" //MinimumEdgedMemoryCapacity gives the minimum default memory (2G) of edge MinimumEdgedMemoryCapacity = 2147483647 //PodSandboxImage gives the default pause container image PodSandboxImage = "k8s.gcr.io/pause" )
View Source
const ( DefaultKubeletPluginsDirName = "plugins" 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, error)
NewInitializedVolumePluginMgr returns a new instance of volume.VolumePluginMgr
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.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.