Documentation ¶
Index ¶
- func AddLabelsForNodes(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
- func ExistNode(node *kubekeyapiv1alpha1.HostCfg) bool
- func GetClusterStatus(mgr *manager.Manager, _ *kubekeyapiv1alpha1.HostCfg) error
- func GetKubeConfig(mgr *manager.Manager) error
- func InitKubernetesCluster(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
- func InstallKubeBinaries(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
- func JoinNodesToCluster(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
- func PatchKubeadmSecret(mgr *manager.Manager) error
- func SetKubelet(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
- func SyncKubeBinaries(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLabelsForNodes ¶
func AddLabelsForNodes(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
func ExistNode ¶
func ExistNode(node *kubekeyapiv1alpha1.HostCfg) bool
ExistNode is used determine if the node already exists.
func GetClusterStatus ¶
func GetClusterStatus(mgr *manager.Manager, _ *kubekeyapiv1alpha1.HostCfg) error
GetClusterStatus is used to fetch status and info from cluster.
func GetKubeConfig ¶
GetKubeConfig is used to copy admin.conf to ~/.kube/config .
func InitKubernetesCluster ¶
func InitKubernetesCluster(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
InitKubernetesCluster is used to init a new cluster.
func InstallKubeBinaries ¶
func InstallKubeBinaries(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
InstallKubeBinaries is used to install kubernetes' binaries to os' PATH.
func JoinNodesToCluster ¶
func JoinNodesToCluster(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
JoinNodesToCluster is used to join node to Cluster.
func PatchKubeadmSecret ¶
PatchKubeadmSecret is used to patch etcd's certs for kubeadm-certs secret.
func SetKubelet ¶
func SetKubelet(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
SetKubelet is used to configure the kubelet's startup parameters.
func SyncKubeBinaries ¶
func SyncKubeBinaries(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
SyncKubeBinaries is used to sync kubernetes' binaries to each node.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.