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" )
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.
Click to show internal directories.
Click to hide internal directories.