Docker-swarm: Unterschied zwischen den Versionen

Aus xinux wiki
Wechseln zu: Navigation, Suche
(change host file)
(node01 node02 node03)
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 16: Zeile 16:
 
=create swarm=
 
=create swarm=
 
;node01
 
;node01
==swam init==
+
==swarm init==
 
*docker swarm init --advertise-addr 10.50.66.21
 
*docker swarm init --advertise-addr 10.50.66.21
 
;node02
 
;node02
Zeile 23: Zeile 23:
 
;node03
 
;node03
 
*docker swarm join --token XXXXXXXXXX
 
*docker swarm join --token XXXXXXXXXX
 +
 +
==node01 node02 node03==
 +
apt install nfs-common nfs-util
 +
 +
nfs mount
  
 
=links=
 
=links=
 
*https://clouding.io/kb/en-us/articles/360010288160-Docker-Swarm-on-Ubuntu-18-04
 
*https://clouding.io/kb/en-us/articles/360010288160-Docker-Swarm-on-Ubuntu-18-04

Version vom 25. März 2020, 16:23 Uhr

install

change host file

/etc/hosts
10.50.66.21 node01
10.50.66.22 node02 
10.50.66.23 node03

create swarm

node01

swarm init

  • docker swarm init --advertise-addr 10.50.66.21
node02
  • docker swarm join --token XXXXXXXXXX
  • docker swarm promote node0
node03
  • docker swarm join --token XXXXXXXXXX

node01 node02 node03

apt install nfs-common nfs-util

nfs mount

links