Documentation
¶
Index ¶
- Constants
- func CleanupTemplateOutput(output string) (string, error)
- func CloudProviderFlags(cpName string, external bool) string
- func ContainerRuntimeHealthCheckSystemdUnit(log *zap.SugaredLogger, containerRuntime string) (string, error)
- func DockerConfig(insecureRegistries, registryMirrors []string, logMaxFiles string, ...) (string, error)
- func DownloadBinariesScript(log *zap.SugaredLogger, kubeletVersion string, downloadKubelet bool) (string, error)
- func GetCACert(kubeconfig *clientcmdapi.Config) (string, error)
- func JournalDConfig() string
- func KernelSettings() string
- func KubeletFlags(log *zap.SugaredLogger, version, cloudProvider, hostname string, ...) (string, error)
- func KubeletHealthCheckSystemdUnit() string
- func KubeletSystemdUnit(log *zap.SugaredLogger, ...) (string, error)
- func LoadKernelModulesScript() string
- func ProxyEnvironment(proxy, noProxy string) string
- func SSHConfigAddendum() string
- func SafeDownloadBinariesScript(log *zap.SugaredLogger, kubeVersion string) (string, error)
- func SetupNodeIPEnvScript(ipFamily util.IPFamily) string
- func StringifyKubeconfig(kubeconfig *clientcmdapi.Config) (string, error)
- func TxtFuncMap(log *zap.SugaredLogger) template.FuncMap
Constants ¶
const ( DefaultDockerContainerLogMaxFiles = "5" DefaultDockerContainerLogMaxSize = "100m" )
Variables ¶
This section is empty.
Functions ¶
func CleanupTemplateOutput ¶
CleanupTemplateOutput postprocesses the output of the template processing. Those may exist due to the working of template functions like those of the sprig package or template condition.
func CloudProviderFlags ¶
CloudProviderFlags returns --cloud-provider and --cloud-config flags.
func ContainerRuntimeHealthCheckSystemdUnit ¶
func ContainerRuntimeHealthCheckSystemdUnit(log *zap.SugaredLogger, containerRuntime string) (string, error)
ContainerRuntimeHealthCheckSystemdUnit container-runtime health checking systemd unit.
func DockerConfig ¶
func DockerConfig(insecureRegistries, registryMirrors []string, logMaxFiles string, logMaxSize string) (string, error)
DockerConfig returns the docker daemon.json.
func DownloadBinariesScript ¶
func DownloadBinariesScript(log *zap.SugaredLogger, kubeletVersion string, downloadKubelet bool) (string, error)
DownloadBinariesScript returns the script which is responsible to download all required binaries.
func JournalDConfig ¶
func JournalDConfig() string
JournalDConfig returns the journal config preferable on every node.
func KernelSettings ¶
func KernelSettings() string
KernelSettings returns the list of kernel settings required for a kubernetes worker node inotify changes according to https://github.com/kubernetes/kubernetes/issues/10421 - better than letting the kubelet die.
func KubeletFlags ¶
func KubeletFlags(log *zap.SugaredLogger, version, cloudProvider, hostname string, dnsIPs []net.IP, external bool, ipFamily util.IPFamily, pauseImage string, initialTaints []corev1.Taint, extraKubeletFlags []string) (string, error)
KubeletFlags returns the kubelet flags. --node-ip and --cloud-provider kubelet flags conflict in the dualstack setup. In general, it is not expected to need to use --node-ip with external CCMs, as the cloud provider is expected to know the correct IPs to return. For details read kubernetes/sig-networking channel discussion https://kubernetes.slack.com/archives/C09QYUH5W/p1654003958331739
func KubeletHealthCheckSystemdUnit ¶
func KubeletHealthCheckSystemdUnit() string
KubeletHealthCheckSystemdUnit kubelet health checking systemd unit.
func KubeletSystemdUnit ¶
func KubeletSystemdUnit(log *zap.SugaredLogger, containerRuntime, kubeletVersion, cloudProvider, hostname string, dnsIPs []net.IP, external bool, ipFamily util.IPFamily, pauseImage string, initialTaints []corev1.Taint, extraKubeletFlags []string, disableSwap bool) (string, error)
KubeletSystemdUnit returns the systemd unit for the kubelet.
func LoadKernelModulesScript ¶
func LoadKernelModulesScript() string
LoadKernelModules returns a script which is responsible for loading all required kernel modules The nf_conntrack_ipv4 module get removed in newer kernel versions.
func ProxyEnvironment ¶
func SSHConfigAddendum ¶
func SSHConfigAddendum() string
func SafeDownloadBinariesScript ¶
func SafeDownloadBinariesScript(log *zap.SugaredLogger, kubeVersion string) (string, error)
SafeDownloadBinariesScript returns the script which is responsible to download and check checksums of all required binaries.
func SetupNodeIPEnvScript ¶
func StringifyKubeconfig ¶
func StringifyKubeconfig(kubeconfig *clientcmdapi.Config) (string, error)
StringifyKubeconfig marshals a kubeconfig to its text form.
func TxtFuncMap ¶
func TxtFuncMap(log *zap.SugaredLogger) template.FuncMap
TxtFuncMap returns an aggregated template function map. Currently (custom functions + sprig).
Types ¶
This section is empty.