kubelet

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const (
	KubeletConfigurationFileName = "config.yaml"
)

Variables

This section is empty.

Functions

func GetDirectoryMountDevice

func GetDirectoryMountDevice(dirPath string) (string, error)

Types

type DockerInfo

type DockerInfo struct {
	ID            string `json:"ID"`
	Driver        string `json:"Driver"`
	DockerRootDir string `json:"DockerRootDir"`
}

func GetDockerInfoByRemote

func GetDockerInfoByRemote() (*DockerInfo, error)

type KubeletConfig

type KubeletConfig interface {
	HasDedicatedImageFs() bool
	GetNodeFsDevice() string
	GetImageFsDevice() string
	GetImageFs() string
	GetEvictionConfig() eviction.Config
}

KubeletConfig is a interface abstracts manipulation of kubelet run directory.

func NewKubeletConfigByDirectory

func NewKubeletConfigByDirectory(dir string) (KubeletConfig, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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