Installing etcd
Perform the following operations on the controller node.
- Install etcd.
1yum -y install etcd
- Modify the /etc/etcd/etcd.conf file.
- Open the file.
vi /etc/etcd/etcd.conf
- Press i to enter the insert mode, modify the following nine parameters, and comment out other parameters:
1 2 3 4 5 6 7 8 9 10 11
#[Member] ETCD_DATA_DIR="/var/lib/etcd/default.etcd" ETCD_LISTEN_PEER_URLS="http://192.168.100.120:2380" ETCD_LISTEN_CLIENT_URLS="http://192.168.100.120:2379" ETCD_NAME="controller" #[Clustering] ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.100.120:2380" ETCD_ADVERTISE_CLIENT_URLS="http://192.168.100.120:2379" ETCD_INITIAL_CLUSTER="controller=http://192.168.100.120:2380" ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01" ETCD_INITIAL_CLUSTER_STATE="new"
All the IP addresses in this example are the OpenStack management IP addresses of the controller node in Table 3.
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Enable and start the etcd service.
1 2
systemctl enable etcd systemctl start etcd
Parent topic: Configuring the Deployment Environment