kubelet

package
v1.90.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 33 Imported by: 18

Documentation

Index

Constants

View Source
const (
	// UnitName is the name of the kubelet service.
	UnitName = v1beta1constants.OperatingSystemConfigUnitNameKubeletService

	// PathKubeconfigBootstrap is the path for the kubelet's bootstrap kubeconfig.
	PathKubeconfigBootstrap = PathKubeletDirectory + "/kubeconfig-bootstrap"
	// PathKubeconfigReal is the path for the kubelet's real kubeconfig (with client certificate after the TLS
	// bootstrapping process finished).
	PathKubeconfigReal = PathKubeletDirectory + "/kubeconfig-real"
	// PathKubeletCACert is the path for the kubelet's certificate authority.
	PathKubeletCACert = PathKubeletDirectory + "/ca.crt"
	// PathKubeletConfig is the path for the kubelet's config file.
	PathKubeletConfig = v1beta1constants.OperatingSystemConfigFilePathKubeletConfig
	// PathKubeletDirectory is the path for the kubelet's directory.
	PathKubeletDirectory = "/var/lib/kubelet"
	// PathScriptCopyKubernetesBinary is the path for the script copying downloaded Kubernetes binaries.
	PathScriptCopyKubernetesBinary = PathKubeletDirectory + "/copy-kubernetes-binary.sh"
	// PathNodeName is the path for a file containing the name of the Node registered by kubelet for the respective
	// machine.
	PathNodeName = PathKubeletDirectory + "/nodename"
)

Variables

This section is empty.

Functions

func CLIFlags

func CLIFlags(kubernetesVersion *semver.Version, nodeLabels map[string]string, criName extensionsv1alpha1.CRIName, cliFlags components.ConfigurableKubeletCLIFlags, preferIPv6 bool) []string

CLIFlags returns a list of kubelet CLI flags based on the provided parameters and for the provided Kubernetes version.

func CentralLoggingConfiguration

func CentralLoggingConfiguration() (comp.CentralLoggingConfig, error)

CentralLoggingConfiguration returns a fluent-bit parser and filter for the kubelet logs.

func Config

func Config(kubernetesVersion *semver.Version, clusterDNSAddress, clusterDomain string, params components.ConfigurableKubeletConfigParameters) *kubeletconfigv1beta1.KubeletConfiguration

Config returns a kubelet config based on the provided parameters and for the provided Kubernetes version.

func New

func New() *component

New returns a new kubelet component.

func ShouldProtectKernelDefaultsBeEnabled

func ShouldProtectKernelDefaultsBeEnabled(kubeletConfigParameters *components.ConfigurableKubeletConfigParameters, kubernetesVersion *semver.Version) bool

ShouldProtectKernelDefaultsBeEnabled returns true if ProtectKernelDefaults is set to true in the kubelet's config parameters or k8s version is >= 1.26.

Types

type ConfigCodec

type ConfigCodec interface {
	// Encode encodes the given *kubeletconfigv1beta1.KubeletConfiguration into a *extensionsv1alpha1.FileContentInline.
	Encode(*kubeletconfigv1beta1.KubeletConfiguration, string) (*extensionsv1alpha1.FileContentInline, error)
	// Decode decodes a *kubeletconfigv1beta1.KubeletConfiguration from the given *extensionsv1alpha1.FileContentInline.
	Decode(*extensionsv1alpha1.FileContentInline) (*kubeletconfigv1beta1.KubeletConfiguration, error)
}

ConfigCodec contains methods for encoding and decoding *kubeletconfigv1beta1.KubeletConfiguration objects to and from *extensionsv1alpha1.FileContentInline.

func NewConfigCodec

func NewConfigCodec(fciCodec oscutils.FileContentInlineCodec) ConfigCodec

NewConfigCodec creates an returns a new ConfigCodec.

Directories

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

Jump to

Keyboard shortcuts

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