etcd components deployed in host mode and separated from the control plane¶
When deploying DCE 5.0 using the installer version 0.13.0 or later, it supports the host mode deployment of etcd, which allows for decoupling from the control plane and achieving an independent high-availability etcd.
Prerequisites¶
- Prepare 3 Master nodes (also serving as Worker nodes)
- Prepare 3 ETCD nodes
- Prepare a bootstrap machine and complete the deployment of pre-requisite components according to the installation dependencies
Offline installation¶
-
Download the full mode offline package on the bootstrap machine. You can download the latest version from the download center.
CPU Architecture Version Download Link AMD64 v0.13.0 https://proxy-qiniu-download-public.daocloud.io/DaoCloud_Enterprise/dce5/offline-v0.13.0-amd64.tar ARM64 v0.13.0 https://proxy-qiniu-download-public.daocloud.io/DaoCloud_Enterprise/dce5/offline-v0.13.0-arm64.tar After downloading, extract the offline package:
-
Set up the cluster configuration file clusterConfig.yaml. You can obtain this file from the offline package
offline/sample
and modify it. The following example mainly describes how to deploy etcd using host mode.The reference configuration is as follows:
apiVersion: provision.daocloud.io/v1alpha3 kind: ClusterConfig metadata: spec: clusterName: my-cluster # Configure etcd node information etcdNodes: - nodeName: "k8s-master" ip: 10.6.112.50 ansibleUser: "root" ansiblePass: "dangerous" - nodeName: "k8s-node1" ip: 10.6.112.51 ansibleUser: "root" ansiblePass: "dangerous" - nodeName: "k8s-node2" ip: 10.6.112.52 ansibleUser: "root" ansiblePass: "dangerous" masterNodes: - nodeName: poc-master1 ip: 10.5.14.31 ansibleUser: root ansiblePass: dangerous@2022 - nodeName: poc-master2 ip: 10.5.14.32 ansibleUser: root ansiblePass: dangerous@2022 - nodeName: poc-master3 ip: 10.5.14.33 ansibleUser: root ansiblePass: dangerous@2022 workerNodes: [] ..... # Configure the deployment mode of etcd as host kubeanConfig: |- etcd_deployment_type: host
Note
- Configure
etcdNodes
. - Configure
etcd_deployment_type: host
in kubeanConfig.
- Configure
-
Configure the manifest file (optional). You can obtain this file from the offline package
offline/sample
and modify it as needed. -
Start the installation of DCE 5.0.
-
After the installation is complete, check if the cluster has deployed etcd.
-
There are no etcd-related Pods in the current cluster.
-
There are no etcd system services on the current cluster nodes.
-
-
Run the command
pf -ef | grep etcd
to check if the apiserver is connected to the external etcd address. -
Run the command
systemctl status etcd
on the etcd nodes to check their running status.