Command Reference
This section describes the commands for installing and deploying openFuyao through Cluster API.
Building an Installation and Deployment Package
-
Command
bke build -
Function
This command is used to build an installation and deployment package that contains binary files, RPM packages, chart packages, and other files.
-
Syntax
-
Build a deployment package based on the YAML file.
bke build -f <yaml file path, eg: offline-artifacts.yaml> -t <target file path, eg: bke.tar.gz> -
View command help.
bke build -h
-
-
Parameter Description
Parameter Description -f,--fileSpecifies the path of the configuration file. -h,--helpDisplays the command help information. -s,--strategySpecifies the image synchronization policy (registry (default) or docker). -t,--targetSpecifies the output path of the BKE file. -
Authorized Users
The root user is authorized to run this command.
-
Prerequisites
bkeadm has been installed.
-
Precautions
None.
Initializing the Bootstrap Node
-
Command
bke init -
Function
This command is used to initialize the bootstrap node, including node check, repository startup, and cluster installation.
-
Syntax
-
Initialize the bootstrap node.
bke init -
Initialize the bootstrap node and deploy the management cluster.
bke init --file <cluster configuration file path, eg: /root/openfuyao/bkecluster.yaml> -
Specify the image source for installation.
bke init --otherRepo <other repo, eg: harbor.openfuyao.com/openfuyao/bke-online-installed:v0.0.3> -
Customize the image source and software source.
bke init --otherRepo <other repo, eg: harbor.openfuyao.com/openfuyao/bke-online-installed:v0.0.3> --otherSource <other source, eg: http://192.168.1.120:40080> -
View command help.
bke init -h
-
-
Parameter Description
Parameter Description -f,--file(Mandatory) Specify the path of the bkecluster.yamlconfiguration file.-h,--helpDisplays the command help information. --chartRepoPortSet the Helm Chart repository port (default: 38080).--clusterAPISpecify the cluster-api-bkeversion (default:v25.03).--confirmSkip the confirmation message and execute the operation directly. --hostIP(Mandatory) Specify the IP address of the local Kubernetes API server. --kubernetesPortSet the local Kubernetes API port (default: 36443).--ntpServerConfigure the NTP server (default: cn.pool.ntp.org:123.localindicates local services).--otherRepoSpecify the address of the image repository (such as Helm Chart and container image). --otherSourceCustomize the private original address for installing the system software package. --runtimeSelect a container runtime ( containerd(default) ordocker).-s,--runtimeStorageSet the container runtime storage directory (default: /var/lib/dockeror/var/lib/containerd).--yumRepoPortSet the Yum repository port (default: 40080). -
Authorized Users
The root user is authorized to run this command.
-
Prerequisites
- bkeadm has been installed.
- The cluster configuration file is available.
-
Precautions
None.
Cluster Operations
-
Command
bke cluster -
Function
This command is used to perform lifecycle management of a cluster.
-
Syntax
-
Install and deploy a cluster.
bke cluster create -f <cluster configuration file path, eg: /root/openfuyao/master.yaml> -
View command help.
bke cluster -h
-
-
Parameter Description
Parameter Description -h,--helpDisplay command help. -
Authorized Users
The root user is authorized to run this command.
-
Prerequisites
- bkeadm has been installed.
- The cluster configuration file is available.
-
Precautions
None.
Uninstalling a Cluster
-
Command
bke reset -
Function
This command is used to clear the services on the bootstrap node and restore the node to the bare-metal server (BMS) state.
-
Syntax
-
Remove local Kubernetes services.
bke reset -
Clear the services on the bootstrap node and the mounted directory.
bke reset --mount -
Clear the node container and runtime environment.
bke reset --all -
Clear node services and skip the deletion confirmation.
bke reset --all --confirm -
View command help.
bke reset -h
-
-
Parameter Description
Parameter Description --allRestores the node. --confirmSkip all deletion confirmations. -h,--helpDisplay the reset command help information. --mountRemove the decompression directory and related services. -
Authorized Users
The root user is authorized to run this command.
-
Prerequisites
- bkeadm has been installed.
- A cluster is available.
-
Precautions
None.