kubelet

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 27 Imported by: 0

Documentation

Index

Constants

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

	// PathKubeletDirectory is the path for the kubelet's directory.
	PathKubeletDirectory = "/var/lib/kubelet"
	// PathKubernetesBinaries is the path for the kubelet and kubectl binaries.
	PathKubernetesBinaries = "/opt/bin"

	// 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 = gardencorev1beta1constants.OperatingSystemConfigFilePathKubeletConfig
)

Variables

This section is empty.

Functions

func CLIFlags

func CLIFlags(kubernetesVersion *semver.Version, criName extensionsv1alpha1.CRIName, image *imagevector.Image, cliFlags components.ConfigurableKubeletCLIFlags) []string

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

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.

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