Rate This Document
Findability
Accuracy
Completeness
Readability

Installing etcd

Perform the following operations on the controller node.

  1. Install etcd.
    1
    yum -y install etcd
    
  2. Modify the /etc/etcd/etcd.conf file.
    1. Open the file.
      vi /etc/etcd/etcd.conf
    2. 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.

    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  3. Enable and start the etcd service.
    1
    2
    systemctl enable etcd
    systemctl start etcd