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 InitK3sCluster(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 SetK3s(mgr *manager.Manager) 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 k3s.yaml to ~/.kube/config .
func InitK3sCluster ¶
func InitK3sCluster(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
InitK3sCluster 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 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.