Configuring Open Ports
Perform the following operations on each node. By default, the etcd server uses port 2379 to monitor requests from the client and uses port 2380 to monitor requests from other servers. In this document, ports 2379 and 2380 are used.
- Open ports 2379 and 2380.
1 2
firewall-cmd --zone=public --add-port=2379/tcp --permanent firewall-cmd --zone=public --add-port=2380/tcp --permanent
- Restart the firewall.
1firewall-cmd --reload - Check whether the ports are opened successfully.
1 2
firewall-cmd --zone=public --query-port=2379/tcp firewall-cmd --zone=public --query-port=2380/tcp
If yes is displayed in the command output, the configuration is successful.
Parent topic: Deploying an etcd Cluster