mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
1.9 KiB
1.9 KiB
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.
Action: The most basic unit. It represents one operation performed on one node;Task: The one that managesAction. It contains fields such asAction,Hosts(The hosts where the action will be executed),Retry,Parallel, etc. In short, it represents executing anActionon the specified hosts as required;Module: A unit that contains one or more relatedTask.Moduleis a module with specific and complete functions;Pipeline: It containsModulescombined in a certain order. It is the complete execution process of a KubeKey command. For example,Create Cluster Pipeline,Add Nodes Pipelineand 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.
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
Method 1
git clone https://github.com/kubesphere/kubekey.git
cd kubekey
./build.sh
Note:
- Docker needs to be installed before building.
- If you have problem to access
https://proxy.golang.org/, excutebuild.sh -pinstead.
Method 2
git clone https://github.com/kubesphere/kubekey.git
cd kubekey
make binary
Note:
- Docker needs to be installed before building.

