Documentation ¶
Overview ¶
Package bsutil package will eventually be renamed to kubeadm package after getting rid of older one
Package bsutil will eventually be renamed to kubeadm package after getting rid of older one ¶
Package bsutil will eventually be renamed to kubeadm package after getting rid of older one ¶
Package bsutil will eventually be renamed to kubeadm package after getting rid of older one ¶
Package bsutil will eventually be renamed to kubeadm package after getting rid of older one ¶
Package bsutil will eventually be renamed to kubeadm package after getting rid of older one ¶
Package bsutil will eventually be renamed to kubeadm package after getting rid of older one
Index ¶
- Constants
- Variables
- func AdjustResourceLimits(c command.Runner) error
- func ConfigFileAssets(cfg config.KubernetesConfig, kubeadm []byte, kubelet []byte, kubeletSvc []byte, ...) []assets.CopyableFile
- func CreateFlagsFromExtraArgs(extraOptions config.ExtraOptionSlice) string
- func EtcdDataDir() string
- func ExistingConfig(c command.Runner) error
- func GenerateKubeadmYAML(mc config.ClusterConfig, r cruntime.Manager, n config.Node) ([]byte, error)
- func InvokeKubeadm(version string) string
- func NewKubeletConfig(mc config.ClusterConfig, nc config.Node, r cruntime.Manager) ([]byte, error)
- func NewKubeletService(cfg config.KubernetesConfig) ([]byte, error)
- func TransferBinaries(cfg config.KubernetesConfig, c command.Runner) error
Constants ¶
const ( // KubeadmCmdParam is command parameters for kubeadm KubeadmCmdParam = iota // KubeadmConfigParam is config parameters for kubeadm KubeadmConfigParam = iota )
enum to differentiate kubeadm command line parameters from kubeadm config file parameters (see the KubeadmExtraArgsWhitelist variable for more info)
const ( //DefaultCNIConfigPath is the configuration file for CNI networks DefaultCNIConfigPath = "/etc/cni/net.d/k8s.conf" // KubeletServiceFile is the file for the systemd kubelet.service KubeletServiceFile = "/lib/systemd/system/kubelet.service" // KubeletSystemdConfFile is config for the systemd kubelet.service KubeletSystemdConfFile = "/etc/systemd/system/kubelet.service.d/10-kubeadm.conf" )
const ( Kubelet = "kubelet" Kubeadm = "kubeadm" Apiserver = "apiserver" Scheduler = "scheduler" ControllerManager = "controller-manager" )
These are the components that can be configured through the "extra-config"
Variables ¶
var KubeadmExtraArgsWhitelist = map[int][]string{ KubeadmCmdParam: { "ignore-preflight-errors", "dry-run", "kubeconfig", "kubeconfig-dir", "node-name", "cri-socket", "experimental-upload-certs", "certificate-key", "rootfs", "skip-phases", }, KubeadmConfigParam: { "pod-network-cidr", }, }
KubeadmExtraArgsWhitelist is a whitelist of supported kubeadm params that can be supplied to kubeadm through minikube's ExtraArgs parameter. The list is split into two parts - params that can be supplied as flags on the command line and params that have to be inserted into the kubeadm config file. This is because of a kubeadm constraint which allows only certain params to be provided from the command line when the --config parameter is specified
var KubeadmYamlPath = path.Join(vmpath.GuestEphemeralDir, "kubeadm.yaml")
KubeadmYamlPath is the path to the kubeadm configuration
var SkipAdditionalPreflights = map[string][]string{}
SkipAdditionalPreflights are additional preflights we skip depending on the runtime in use.
Functions ¶
func AdjustResourceLimits ¶
AdjustResourceLimits makes fine adjustments to pod resources that aren't possible via kubeadm config.
func ConfigFileAssets ¶
func ConfigFileAssets(cfg config.KubernetesConfig, kubeadm []byte, kubelet []byte, kubeletSvc []byte, defaultCNIConfig []byte) []assets.CopyableFile
ConfigFileAssets returns configuration file assets
func CreateFlagsFromExtraArgs ¶
func CreateFlagsFromExtraArgs(extraOptions config.ExtraOptionSlice) string
CreateFlagsFromExtraArgs converts kubeadm extra args into flags to be supplied from the command linne
func ExistingConfig ¶
ExistingConfig checks if there are config files from possible previous kubernets cluster
func GenerateKubeadmYAML ¶
func GenerateKubeadmYAML(mc config.ClusterConfig, r cruntime.Manager, n config.Node) ([]byte, error)
GenerateKubeadmYAML generates the kubeadm.yaml file
func InvokeKubeadm ¶
InvokeKubeadm returns the invocation command for Kubeadm
func NewKubeletConfig ¶
NewKubeletConfig generates a new systemd unit containing a configured kubelet based on the options present in the KubernetesConfig.
func NewKubeletService ¶
func NewKubeletService(cfg config.KubernetesConfig) ([]byte, error)
NewKubeletService returns a generated systemd unit file for the kubelet
func TransferBinaries ¶
func TransferBinaries(cfg config.KubernetesConfig, c command.Runner) error
TransferBinaries transfers all required Kubernetes binaries
Types ¶
This section is empty.