Documentation ¶
Index ¶
- func CleanupTemplateOutput(output string) (string, error)
- func CloudProviderFlags(cpName string, external bool) (string, error)
- func ContainerRuntimeHealthCheckSystemdUnit(containerRuntime string) (string, error)
- func ContainerdConfig(insecureRegistries []string, registryMirrors map[string][]string, ...) (string, error)
- func DockerConfig(insecureRegistries, registryMirrors []string) (string, error)
- func DownloadBinariesScript(kubeletVersion string, downloadKubelet bool) (string, error)
- func GetCACert(kubeconfig *clientcmdapi.Config) (string, error)
- func GetServerAddressFromKubeconfig(kubeconfig *clientcmdapi.Config) (string, error)
- func JournalDConfig() string
- func KernelSettings() string
- func KubeletFlags(version, cloudProvider, hostname string, dnsIPs []net.IP, external bool, ...) (string, error)
- func KubeletHealthCheckSystemdUnit() string
- func KubeletSystemdUnit(containerRuntime, kubeletVersion, cloudProvider, hostname string, ...) (string, error)
- func LoadKernelModulesScript() string
- func ProxyEnvironment(proxy, noProxy string) string
- func SSHConfigAddendum() string
- func SafeDownloadBinariesScript(kubeVersion string) (string, error)
- func SetupNodeIPEnvScript() string
- func StringifyKubeconfig(kubeconfig *clientcmdapi.Config) (string, error)
- func TxtFuncMap() template.FuncMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupTemplateOutput ¶ added in v1.1.6
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 ¶ added in v1.1.1
CloudProviderFlags returns --cloud-provider and --cloud-config flags
func ContainerRuntimeHealthCheckSystemdUnit ¶ added in v0.9.5
ContainerRuntimeHealthCheckSystemdUnit container-runtime health checking systemd unit
func ContainerdConfig ¶ added in v1.24.0
func DockerConfig ¶ added in v1.2.0
DockerConfig returns the docker daemon.json.
func DownloadBinariesScript ¶ added in v0.9.5
DownloadBinariesScript returns the script which is responsible to download all required binaries.
func GetServerAddressFromKubeconfig ¶
func GetServerAddressFromKubeconfig(kubeconfig *clientcmdapi.Config) (string, error)
func JournalDConfig ¶ added in v0.9.5
func JournalDConfig() string
JournalDConfig returns the journal config preferable on every node
func KernelSettings ¶ added in v0.9.5
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 ¶ added in v0.9.5
func KubeletFlags(version, cloudProvider, hostname string, dnsIPs []net.IP, external bool, pauseImage string, initialTaints []corev1.Taint, extraKubeletFlags []string) (string, error)
KubeletFlags returns the kubelet flags
func KubeletHealthCheckSystemdUnit ¶ added in v0.9.5
func KubeletHealthCheckSystemdUnit() string
KubeletHealthCheckSystemdUnit kubelet health checking systemd unit
func KubeletSystemdUnit ¶ added in v0.9.5
func KubeletSystemdUnit(containerRuntime, kubeletVersion, cloudProvider, hostname string, dnsIPs []net.IP, external bool, pauseImage string, initialTaints []corev1.Taint, extraKubeletFlags []string) (string, error)
KubeletSystemdUnit returns the systemd unit for the kubelet
func LoadKernelModulesScript ¶ added in v1.5.3
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 ¶ added in v1.2.0
func SSHConfigAddendum ¶ added in v1.31.0
func SSHConfigAddendum() string
func SafeDownloadBinariesScript ¶ added in v1.14.0
SafeDownloadBinariesScript returns the script which is responsible to download and check checksums of all required binaries.
func SetupNodeIPEnvScript ¶ added in v1.14.2
func SetupNodeIPEnvScript() string
func StringifyKubeconfig ¶
func StringifyKubeconfig(kubeconfig *clientcmdapi.Config) (string, error)
StringifyKubeconfig marshals a kubeconfig to its text form
func TxtFuncMap ¶ added in v0.9.5
TxtFuncMap returns an aggregated template function map. Currently (custom functions + sprig)
Types ¶
This section is empty.