Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Usar IP estatica.
- https://huezohuezo1990.wordpress.com/configurar-una-interfaz/
- Docker Swarm, es necesario abrir los puertos de comunicación entre nodos
- Firewall en CentOS
- systemctl status firewalld
- firewall-cmd --add-port=2376/tcp --permanent && firewall-cmd --add-port=2377/tcp --permanent && firewall-cmd --add-port=7946/tcp --permanent && firewall-cmd --add-port=7946/udp --permanent && firewall-cmd --add-port=4789/udp --permanent && firewall-cmd --add-port=12376/tcp --permanent && firewall-cmd --add-port=12379/tcp --permanent && firewall-cmd --add-port=12380/tcp --permanent
- firewall-cmd --reload
- firewall-cmd --zone=public --add-port=5000/tcp && firewall-cmd --zone=public --add-port=5000/tcp --permanent
- firewall-cmd --reload
- Firewall en Ubuntu y debian ( UFW )
- https://help.ubuntu.com/community/UFW
- sudo ufw allow ssh
- sudo ufw allow 2376/tcp && sudo ufw allow 2377/tcp && sudo ufw allow 7946/tcp && sudo ufw allow 7946/udp && sudo ufw allow 4789/udp && sudo ufw allow 12376/tcp && sudo ufw allow 12379/tcp && sudo ufw allow 12380/tcp
- sudo ufw allow 5000/tcp
- inciar el cluster de Docker Swarm
- docker swarm init --advertise-addr IP_Servidor
- docker swarm init --advertise-addr 192.168.10.135
- Para agregar, Otros Nodos al swarm:
- docker swarm join-token manager
- docker swarm init --advertise-addr 192.168.20.50
- docker swarm join --token SWMTKN-1-6a3s1kjcb2f6whixgtzj84f6wh7iomuav9w3zofvbxxxa97jxi-1tz1cjkdb0jryg7wfjeuvq3ve 192.168.20.50:2377
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement