kubelet

package
v0.0.0-...-6410feb Latest Latest
Warning

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

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

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