kubeadm

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2021 License: LGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCustomComponent

func ApplyCustomComponent(ctx *common.ClusterContext, s ssh.Interface, image string, podManifest string) error

func BuildMasterEtcdPeerCluster

func BuildMasterEtcdPeerCluster(ctx *common.ClusterContext) string

func DockerFilterForControlPlane

func DockerFilterForControlPlane(name string) string

func GetAPIServerExtraArgs

func GetAPIServerExtraArgs(ctx *common.ClusterContext) map[string]string

func GetClusterConfiguration

func GetClusterConfiguration(ctx *common.ClusterContext, cfg *config.Config, controlPlaneEndpoint string) *kubeadmv1beta2.ClusterConfiguration

func GetControllerManagerExtraArgs

func GetControllerManagerExtraArgs(ctx *common.ClusterContext) map[string]string

func GetSchedulerExtraArgs

func GetSchedulerExtraArgs(ctx *common.ClusterContext) map[string]string

func ImagesPull

func ImagesPull(ctx *common.ClusterContext, s ssh.Interface, k8sVersion, imagesRepository string) error

ImagesPull ...

func Init

func Init(ctx *common.ClusterContext, s ssh.Interface, kubeadmConfig *Config, extraCmd string) error

Init phase ...

func InitCerts

func InitCerts(ctx *common.ClusterContext, cfg *Config, isHosted bool) error

InitCerts ...

func JoinControlPlane

func JoinControlPlane(ctx *common.ClusterContext, s ssh.Interface) error

JoinControlPlane ...

func JoinNode

func JoinNode(s ssh.Interface, option *JoinNodeOption) error

func RebuildMasterManifestFile

func RebuildMasterManifestFile(ctx *common.ClusterContext, s ssh.Interface, cfg *config.Config) error

func RenewCerts

func RenewCerts(s ssh.Interface) error

func RestartContainerByFilter

func RestartContainerByFilter(s ssh.Interface, filter string) error

func RestartControlPlane

func RestartControlPlane(s ssh.Interface) error

Types

type Config

type Config struct {
	InitConfiguration      *kubeadmv1beta2.InitConfiguration
	ClusterConfiguration   *kubeadmv1beta2.ClusterConfiguration
	JoinConfiguration      *kubeadmv1beta2.JoinConfiguration
	KubeletConfiguration   *kubeletv1beta1.KubeletConfiguration
	KubeProxyConfiguration *kubeproxyv1alpha1.KubeProxyConfiguration
}

func GetKubeadmConfig

func GetKubeadmConfig(ctx *common.ClusterContext, cfg *config.Config, controlPlaneEndpoint string) *Config

func GetKubeadmConfigByMaster0

func GetKubeadmConfigByMaster0(ctx *common.ClusterContext, cfg *config.Config) *Config

func (*Config) Marshal

func (c *Config) Marshal() ([]byte, error)

type JoinControlPlaneOption

type JoinControlPlaneOption struct {
	NodeName             string
	AdvertiseAddress     string
	BootstrapToken       string
	CertificateKey       string
	ControlPlaneEndpoint string
}

JoinControlPlaneOption ...

type JoinNodeOption

type JoinNodeOption struct {
	NodeName             string
	BootstrapToken       string
	ControlPlaneEndpoint string
}

type Option

type Option struct {
	HostIP           string
	Images           string
	EtcdPeerCluster  string
	TokenClusterName string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL