edged

package
v1.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 87 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.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

type Config

type Config struct {
	MaxPerPodContainerCount int
	DockerAddress           string

	RuntimeRequestTimeout metav1.Duration
	PodSandboxImage       string
	// contains filtered or unexported fields
}

Config defines configuration details

Jump to

Keyboard shortcuts

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