Install GlusterFS as Replicated Storage Volume in Docker Swarm Cluster - Part 2
4.2 هزار بار بازدید -
4 سال پیش
-
This is Part - 2
This is Part - 2 in Setup Docker Swarm Cluster on Ubuntu 20.04 with GlusterFS as Replicated Storage series.
#Glusterfs
#GlusterfsDocker
#GlusterfsTrafik
Useful referral links
=========================================
Digital ocean - m.do.co/c/4fc5bb284d41
Rasberry Pi - uk.pi-supply.com/?ref=cjv78_u0ntq
Create beautiful social media graphics - www.canva.com/join/wqj-rnt-rtx
Please find the link below for first part.
=========================================
Setup Docker Swarm Cluster - • Setup Docker Swarm Cluster on Ubuntu ...
Full blog post for docker swarm cluster - rb.gy/lbcj6e
Deploy Traefik v2.0 in Docker Swarm as a reverse proxy
=========================================
• Deploy Traefik v2.0 - Cloud Native Ed...
Full blog post for deploying Traefik in Docker Swarm - rb.gy/ayr4f9
In this video, I will install GlusterFS as replicated storage server for applications high availability on our Docker Swarm Cluster.
Please go through the links below to get an overview of GlusterFS
=========================================
www.gluster.org/
docs.gluster.org/en/latest/Quick-Start-Guide/Archi…
I will be creating Replicated Glusterfs Volume in our Docker Swarm Cluster. Please find the steps below to proceed further. Run the below commands on manager as well as worker nodes.
Install software-properties-common
=========================================
sudo apt-get install software-properties-common
Add the community GlusterFS PPA
=========================================
sudo add-apt-repository ppa:gluster/glusterfs-7
Update the servers
=========================================
sudo apt-get update
Finally, Install GlusterFS
=========================================
sudo apt-get install glusterfs-server
Start the glusterd service and enable it to launch every time at system boot
=========================================
sudo systemctl start glusterd
sudo systemctl enable glusterd
Probe the worker node from manager node
=========================================
sudo gluster peer probe nodeone
View GlusterFS pool list
=========================================
sudo gluster pool list
Create glusterfs brick on manager and worker
=========================================
sudo mkdir -p /gluster/brick
Create replicated glusterfs replicated volume
=========================================
sudo gluster volume create swarm-gfs replica 2 manager:/gluster/brick nodeone:/gluster/brick force
Start the above created volume
=========================================
sudo gluster volume start swarm-gfs
Check the volume
=========================================
sudo gluster volume info
Now mount the replicated volume on /mnt
=========================================
sudo umount /mnt
sudo chown -R USERNAME /etc/fstab /mnt
sudo chown -R USERNAME /mnt
sudo echo 'localhost:/swarm-gfs /mnt glusterfs defaults,_netdev,backupvolfile-server=localhost 0 0' -- /etc/fstab
sudo mount.glusterfs localhost:/swarm-gfs /mnt
sudo chown -R USERNAME:docker /mnt
Now we have configured GlusterFS as replicated storage volume in our Docker Swarm Cluster for application high availability.
In coming videos I will show you how to install Traefik as reverse proxy and load balancer in our cluster and proceed to install useful micro-services.
Stay tuned...🙂
=========================================
Remember to leave a comment or like on this video and subscribe if you want to see more!
========================================
4 سال پیش
در تاریخ 1399/05/22 منتشر شده
است.
4,247
بـار بازدید شده