Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.59 KB

developer-guide.md

File metadata and controls

30 lines (20 loc) · 1.59 KB

Architecture

KubeKey defines task pipelines for cluster operations such as installation, scaling, uninstallation, etc. And uses SSH and Kubernetes Api to perform corresponding tasks on hosts and cluster with host grouping and configuration management.

Image

  • Action: The most basic unit. It represents one operation performed on one node;
  • Task: The one that manages Action. It contains fields such as Action, Hosts (The hosts where the action will be executed), Retry, Parallel, etc. In short, it represents executing an Action on the specified hosts as required;
  • Module: A unit that contains one or more related Task. Module is a module with specific and complete functions;
  • Pipeline: It contains Modules combined in a certain order. It is the complete execution process of a KubeKey command. For example, Create Cluster Pipeline, Add Nodes Pipeline and so on.

Addons

All plugins which are installed by yaml or chart can be kubernetes' addons. So the addons configuration support both yaml and chart.

Image

The task of installing KubeSphere is added to the task pipeline of the installation cluster by default. So KubeSphere can be deployed in two ways:

  • Using the command kk create cluster --with-kubesphere
  • Configure KubeSphere as a addon in the configuration file.

Notice: Installation of KubeSphere using ks-installer.

Build Binary from Source Code

git clone https://github.com/kubesphere/kubekey.git
cd kubekey
make kk