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.
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. |
Package templates generated by go-bindata.// sources: scripts/health-monitor.tpl.sh
|
Package templates generated by go-bindata.// sources: scripts/health-monitor.tpl.sh |
Click to show internal directories.
Click to hide internal directories.