Online Bootstrap Cluster Installation
Configuration Requirements
Table 1 Minimum Deployment Hardware Configuration
| Node Type | Node Quantity | vCPU (Count) | Memory (GB) | Hard Disk |
|---|---|---|---|---|
| Bootstrap Node | 1 | 2 | 4 | System disk>=100G |
| Service Cluster Node | 1 | 8 | 16 | System disk>=100G |
Table 2 Recommended Hardware Configuration
| Node Type | Node Quantity | vCPU (Count) | Memory (GB) | Hard Disk |
|---|---|---|---|---|
| Bootstrap Node | 1 | 2 | 4 | System disk>=100G |
| Service Cluster | Determined by actual situation | Determined by actual situation | Determined by actual situation | Determined by actual situation |
Environment Preparation
Prepare two bare metal machines, respectively serving as the bootstrap node and deployment node for the service cluster. The bootstrap node needs to have the tar tool installed. For tar tool installation version, please refer to https://mirrors.aliyun.com/gnu/tar/.
Notice:
It is recommended that your node environment be a bare metal operating system with no docker or Kubernetes components installed, otherwise version conflicts may occur and cause installation failure. If you need to install experimentally in an existing environment, you can download the incubation tool env-check for environment verification.
Installation Steps
Execute the following command on the bootstrap node to download and automatically install the BKE tool.
bash# Method 1: Quick download curl -sfL https://openfuyao.obs.cn-north-4.myhuaweicloud.com/openFuyao/bkeadm/releases/download/1.2.2/download.sh | bashbash# Method 2: Download with integrity verification ## Download download.sh script file curl -LO https://openfuyao.obs.cn-north-4.myhuaweicloud.com/openFuyao/bkeadm/releases/download/1.2.2/download.sh ## Download the checksum file for download.sh and verify (optional). Successful verification will output -: OK. If verification fails, contact openFuyao community maintainers to locate the cause curl -LO https://openfuyao.obs.cn-north-4.myhuaweicloud.com/openFuyao/bkeadm/releases/download/1.2.2/download.sh.sha256 sha256sum -c <(cat download.sh.sha256) < download.sh ## Run download.sh to download the bke installation tool, which will verify sha256sum during execution chmod +x download.sh && ./download.shExecute the following command to initialize the bootstrap cluster.
This step will deploy a lightweight K3s cluster on the bootstrap node. The cluster will deploy cluster-api, provider-bke, and openFuyao installation and deployment related Pods.
bashbke init --onlineImage cr.openfuyao.cn/openfuyao/bke-online-installed:1.2.2The above initialization operation will cause the Pods deployed on the bootstrap node to pull images from the online repository. If you want to obtain images from local, you can use the following command to specify the local installation package.
bashbke init --onlineImage cr.openfuyao.cn/openfuyao/bke-online-installed:1.2.2 --installConsole=false --imageFilePath=/tmp/local_amd/image_amd64.tar.gzWhere: imageFilePath points to the local installation package. For build method, please refer to Bootstrap Node Initialization Process Optimization.
Caution:
Bootstrap node initialization process optimization is only for minimal set initialization of the bootstrap node and will not deploy the frontend openFuyao interface.Execute the following command to view the Pods deployed on the bootstrap cluster.
bashkubectl get pod -AAfter all Pod states are normal, the bootstrap cluster installation is complete, and you can continue to log in to the openFuyao bootstrap node's management plane for service cluster installation.
Uninstallation
Execute the following command to reset the bootstrap cluster.
bashbke reset --all --mountExecute the following command to completely uninstall BKE related content.
bashrm -rf /bke rm -f /usr/local/bin/bke