components

package
v1.108.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MemoryAvailable is a constant for the 'memory.available' eviction setting.
	MemoryAvailable = "memory.available"
	// ImageFSAvailable is a constant for the 'imagefs.available' eviction setting.
	ImageFSAvailable = "imagefs.available"
	// ImageFSInodesFree is a constant for the 'imagefs.inodesFree' eviction setting.
	ImageFSInodesFree = "imagefs.inodesFree"
	// NodeFSAvailable is a constant for the 'nodefs.available' eviction setting.
	NodeFSAvailable = "nodefs.available"
	// NodeFSInodesFree is a constant for the 'nodefs.inodesFree' eviction setting.
	NodeFSInodesFree = "nodefs.inodesFree"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	// Name returns the name of the component.
	Name() string
	// Config takes a configuration context and returns units and files.
	Config(Context) ([]extensionsv1alpha1.Unit, []extensionsv1alpha1.File, error)
}

Component is an interface which can be implemented by operating system config components.

type ConfigurableKubeletCLIFlags

type ConfigurableKubeletCLIFlags struct{}

ConfigurableKubeletCLIFlags is the set of configurable kubelet command line parameters.

func KubeletCLIFlagsFromCoreV1beta1KubeletConfig

func KubeletCLIFlagsFromCoreV1beta1KubeletConfig(_ *gardencorev1beta1.KubeletConfig) ConfigurableKubeletCLIFlags

KubeletCLIFlagsFromCoreV1beta1KubeletConfig computes the ConfigurableKubeletCLIFlags based on the provided gardencorev1beta1.KubeletConfig.

type ConfigurableKubeletConfigParameters

type ConfigurableKubeletConfigParameters struct {
	ContainerLogMaxSize              *string
	ContainerLogMaxFiles             *int32
	CpuCFSQuota                      *bool
	CpuManagerPolicy                 *string
	EvictionHard                     map[string]string
	EvictionMinimumReclaim           map[string]string
	EvictionSoft                     map[string]string
	EvictionSoftGracePeriod          map[string]string
	EvictionPressureTransitionPeriod *metav1.Duration
	EvictionMaxPodGracePeriod        *int32
	FailSwapOn                       *bool
	FeatureGates                     map[string]bool
	ImageGCHighThresholdPercent      *int32
	ImageGCLowThresholdPercent       *int32
	SeccompDefault                   *bool
	SerializeImagePulls              *bool
	StreamingConnectionIdleTimeout   *metav1.Duration
	RegistryPullQPS                  *int32
	RegistryBurst                    *int32
	KubeReserved                     map[string]string
	MaxPods                          *int32
	MemorySwap                       *kubeletconfigv1beta1.MemorySwapConfiguration
	PodPidsLimit                     *int64
	ProtectKernelDefaults            *bool
	SystemReserved                   map[string]string
}

ConfigurableKubeletConfigParameters is the set of configurable kubelet config parameters.

func KubeletConfigParametersFromCoreV1beta1KubeletConfig

func KubeletConfigParametersFromCoreV1beta1KubeletConfig(kubeletConfig *gardencorev1beta1.KubeletConfig) ConfigurableKubeletConfigParameters

KubeletConfigParametersFromCoreV1beta1KubeletConfig computes the ConfigurableKubeletConfigParameters based on the provided gardencorev1beta1.KubeletConfig.

type Context

type Context struct {
	Key                     string
	CABundle                *string
	ClusterDNSAddresses     []string
	ClusterDomain           string
	CRIName                 extensionsv1alpha1.CRIName
	Images                  map[string]*imagevector.Image
	NodeLabels              map[string]string
	NodeMonitorGracePeriod  metav1.Duration
	KubeletCABundle         []byte
	KubeletCLIFlags         ConfigurableKubeletCLIFlags
	KubeletConfigParameters ConfigurableKubeletConfigParameters
	KubeletDataVolumeName   *string
	KubeProxyEnabled        bool
	KubernetesVersion       *semver.Version
	SSHPublicKeys           []string
	SSHAccessEnabled        bool
	ValiIngress             string
	ValitailEnabled         bool
	APIServerURL            string
	Sysctls                 map[string]string
	PreferIPv6              bool
	Taints                  []corev1.Taint
}

Context contains configuration for the components.

Directories

Path Synopsis
mock
Package kubelet is a generated GoMock package.
Package kubelet is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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