k3s

package
v0.0.0-...-7132af1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func GetKubeConfig(mgr *manager.Manager) error

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 SetK3s

func SetK3s(mgr *manager.Manager) error

SetK3s 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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