Documentation ¶
Index ¶
- func ApplyCustomComponent(ctx *common.ClusterContext, s ssh.Interface, image string, podManifest string) error
- func BuildMasterEtcdPeerCluster(ctx *common.ClusterContext) string
- func DockerFilterForControlPlane(name string) string
- func GetAPIServerExtraArgs(ctx *common.ClusterContext) map[string]string
- func GetClusterConfiguration(ctx *common.ClusterContext, cfg *config.Config, controlPlaneEndpoint string) *kubeadmv1beta2.ClusterConfiguration
- func GetControllerManagerExtraArgs(ctx *common.ClusterContext) map[string]string
- func GetFullKubeletConfiguration(ctx *common.ClusterContext) *kubeletv1beta1.KubeletConfiguration
- func GetInitConfiguration(ctx *common.ClusterContext, cfg *config.Config) *kubeadmv1beta2.InitConfiguration
- func GetKubeProxyConfiguration(ctx *common.ClusterContext) *kubeproxyv1alpha1.KubeProxyConfiguration
- func GetKubeletConfiguration(ctx *common.ClusterContext) *kubeletv1beta1.KubeletConfiguration
- func GetSchedulerExtraArgs(ctx *common.ClusterContext) map[string]string
- func ImagesPull(ctx *common.ClusterContext, s ssh.Interface, ...) error
- func Init(ctx *common.ClusterContext, s ssh.Interface, kubeadmConfig *Config, ...) error
- func InitCerts(ctx *common.ClusterContext, cfg *Config, isHosted bool) error
- func JoinControlPlane(ctx *common.ClusterContext, s ssh.Interface) error
- func JoinNode(s ssh.Interface, option *JoinNodeOption) error
- func RebuildMasterManifestFile(ctx *common.ClusterContext, s ssh.Interface, cfg *config.Config) error
- func RenewCerts(s ssh.Interface) error
- func RestartContainerByFilter(s ssh.Interface, filter string) error
- func RestartControlPlane(s ssh.Interface) error
- type Config
- type JoinControlPlaneOption
- type JoinNodeOption
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCustomComponent ¶
func BuildMasterEtcdPeerCluster ¶
func BuildMasterEtcdPeerCluster(ctx *common.ClusterContext) 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 GetFullKubeletConfiguration ¶
func GetFullKubeletConfiguration(ctx *common.ClusterContext) *kubeletv1beta1.KubeletConfiguration
func GetInitConfiguration ¶
func GetInitConfiguration(ctx *common.ClusterContext, cfg *config.Config) *kubeadmv1beta2.InitConfiguration
func GetKubeProxyConfiguration ¶
func GetKubeProxyConfiguration(ctx *common.ClusterContext) *kubeproxyv1alpha1.KubeProxyConfiguration
func GetKubeletConfiguration ¶
func GetKubeletConfiguration(ctx *common.ClusterContext) *kubeletv1beta1.KubeletConfiguration
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 RenewCerts ¶
func RestartControlPlane ¶
Types ¶
type Config ¶
type Config struct { InitConfiguration *kubeadmv1beta2.InitConfiguration ClusterConfiguration *kubeadmv1beta2.ClusterConfiguration JoinConfiguration *kubeadmv1beta2.JoinConfiguration KubeletConfiguration *kubeletv1beta1.KubeletConfiguration KubeProxyConfiguration *kubeproxyv1alpha1.KubeProxyConfiguration }
func GetKubeadmConfig ¶
func GetKubeadmConfigByMaster0 ¶
func GetKubeadmConfigByMaster0(ctx *common.ClusterContext, cfg *config.Config) *Config
type JoinControlPlaneOption ¶
type JoinControlPlaneOption struct { NodeName string AdvertiseAddress string BootstrapToken string CertificateKey string ControlPlaneEndpoint string }
JoinControlPlaneOption ...
type JoinNodeOption ¶
Click to show internal directories.
Click to hide internal directories.